Composite composite = (Composite) super.createDialogArea(parent);
GridLayout gridLayout = new GridLayout();
gridLayout.numColumns = 2;
composite.setLayout(gridLayout);
Work work = (Work) getValue();
Label nameLabel = new Label(composite, SWT.NONE);
nameLabel.setText("Name: ");
nameText = new Text(composite, SWT.NONE);
GridData gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
nameText.setLayoutData(gridData);
String name = (String) work.getParameter("TaskName");
nameText.setText(name == null ? "" : name);
Label label = new Label(composite, SWT.NONE);
label.setText("Actor(s): ");
actorText = new Text(composite, SWT.NONE);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
actorText.setLayoutData(gridData);
String value = (String) work.getParameter("ActorId");
actorText.setText(value == null ? "" : value);
label = new Label(composite, SWT.NONE);
label.setText("Comment: ");
commentText = new Text(composite, SWT.MULTI);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.grabExcessVerticalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
gridData.verticalAlignment = GridData.FILL;
commentText.setLayoutData(gridData);
value = (String) work.getParameter("Comment");
commentText.setText(value == null ? "" : value.toString());
label = new Label(composite, SWT.NONE);
label.setText("Priority: ");
priorityText = new Text(composite, SWT.NONE);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
priorityText.setLayoutData(gridData);
value = (String) work.getParameter("Priority");
priorityText.setText(value == null ? "" : value);
skippableButton = new Button(composite, SWT.CHECK | SWT.LEFT);
skippableButton.setText("Skippable");
value = (String) work.getParameter("Skippable");
skippableButton.setSelection("true".equals(value));
gridData = new GridData();
gridData.horizontalSpan = 2;
skippableButton.setLayoutData(gridData);
label = new Label(composite, SWT.NONE);
label.setText("Content: ");
contentText = new Text(composite, SWT.MULTI);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.grabExcessVerticalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
gridData.verticalAlignment = GridData.FILL;
contentText.setLayoutData(gridData);
value = (String) work.getParameter("Content");
contentText.setText(value == null ? "" : value.toString());
return composite;
}