final GridLayout gridLayout = new GridLayout();
gridLayout.horizontalSpacing = 2;
container.setLayout(gridLayout);
headersTabItem.setControl(container);
Work work = (Work) getValue();
Label nameLabel = new Label(container, SWT.NONE);
nameLabel.setText("Name: ");
nameText = new Text(container, 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(container, SWT.NONE);
label.setText("Actor(s): ");
actorText = new Text(container, 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(container, SWT.NONE);
label.setText("Group(s): ");
groupText = new Text(container, SWT.NONE);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
groupText.setLayoutData(gridData);
value = (String) work.getParameter("GroupId");
groupText.setText(value == null ? "" : value);
label = new Label(container, SWT.NONE);
label.setText("Comment: ");
commentText = new Text(container, 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(container, SWT.NONE);
label.setText("Priority: ");
priorityText = new Text(container, 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(container, 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(container, SWT.NONE);
label.setText("Content: ");
contentText = new Text(container, 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());
label = new Label(container, SWT.NONE);
label.setText("Locale: ");
localeText = new Text(container, SWT.NONE);
gridData = new GridData();
gridData.grabExcessHorizontalSpace = true;
gridData.horizontalAlignment = GridData.FILL;
localeText.setLayoutData(gridData);
value = (String) work.getParameter("Locale");
localeText.setText(value == null ? "en-UK" : value.toString());
}