@Override
public void createPartControl(Composite parent) {
this.shell = parent.getShell();
int BASEWIDTH = 70;
GridLayout layout = new GridLayout();
GridData gridData = null;
layout.numColumns = 4;
parent.setLayout(layout);
Label label = null;
label = new Label(parent, SWT.NONE | SWT.RIGHT);
//Nutzername Label
label.setText("Nutzername:");
gridData = new GridData();
gridData.widthHint = BASEWIDTH;
gridData.grabExcessHorizontalSpace = false;
gridData.horizontalAlignment = GridData.FILL;
label.setLayoutData(gridData);
//Nutzername Textfeld
nutzername = new Text(parent, SWT.BORDER);
nutzername.setText(nutzer.getNutzername());
nutzername.addModifyListener(ml);
gridData = new GridData();
gridData.horizontalSpan=3;
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
nutzername.setLayoutData(gridData);
//Namen Zeile
label = new Label(parent, SWT.NONE | SWT.RIGHT);
label.setText("Vorname:");
gridData = new GridData();
gridData.widthHint = BASEWIDTH;
gridData.grabExcessHorizontalSpace = false;
gridData.horizontalAlignment = GridData.FILL;
label.setLayoutData(gridData);
//Namen textfeld
vorname = new Text(parent, SWT.BORDER);
vorname.setText(nutzer.getVorname());
vorname.addModifyListener(ml);
gridData = new GridData();
gridData.horizontalSpan=3;
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
vorname.setLayoutData(gridData);
//nachname textfeld
label = new Label(parent, SWT.NONE | SWT.RIGHT);
label.setText("Nachname:");
gridData = new GridData();
gridData.widthHint = BASEWIDTH;
gridData.grabExcessHorizontalSpace = false;
gridData.horizontalAlignment = GridData.FILL;
label.setLayoutData(gridData);
//nachname textfeld
nachname = new Text(parent, SWT.BORDER);
nachname.setText(nutzer.getNachname());
nachname.addModifyListener(ml);
gridData = new GridData();
gridData.horizontalSpan=3;
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
nachname.setLayoutData(gridData);
//Passwortfeld
Group border = new Group(parent, SWT.SHADOW_ETCHED_IN);
border.setText("Passwort");
//Layout setzen
layout = new GridLayout();
layout.numColumns = 2;
border.setLayout(layout);
label = new Label(border, SWT.NONE | SWT.RIGHT);
label.setText("Passwort:");
gridData = new GridData();
gridData.widthHint = BASEWIDTH;
label.setLayoutData(gridData);
password[0] = new Text(border, SWT.BORDER);
password[0].setEchoChar('*');
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
password[0].setLayoutData(gridData);
password[0].addModifyListener(ml);
label = new Label(border, SWT.NONE | SWT.RIGHT);
label.setText("wiederholen:");
gridData = new GridData();
gridData.widthHint = BASEWIDTH;
label.setLayoutData(gridData);
password[1] = new Text(border, SWT.BORDER);
password[1].setEchoChar('*');
password[1].addModifyListener(ml);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
password[1].setLayoutData(gridData);
//ins parent setzen
gridData = new GridData();
gridData.horizontalSpan=4;
gridData.verticalSpan=3;
gridData.heightHint=BASEWIDTH;
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
gridData.verticalAlignment = GridData.FILL;
border.setLayoutData(gridData);
}