packageField.setButtonLabel("&Browse...");
DialogFieldUtils.fillControls(this, packageField, COLUMNS, 60);
}
// view name
{
viewField = new StringDialogField();
viewField.setDialogFieldListener(m_validateListener);
viewField.setLabelText("&View name:");
DialogFieldUtils.fillControls(this, viewField, COLUMNS, 60);
}
// Java template (NOT UiBinder)
{
new Label(this, SWT.NONE);// filler
Composite composite = new Composite(this, SWT.NONE);
composite.setLayout(new GridLayout(2, true));
useUiBinderRadio = new Button(composite, SWT.RADIO);
useUiBinderRadio.setText("use UiBinder template");
useJavaRadio = new Button(composite, SWT.RADIO);
useJavaRadio.setText("use Java template");
GridDataFactory.create(composite).alignHF().spanH(COLUMNS - 1);
}
// place name
{
placeField = new CheckDialogField();
placeField.setDialogFieldListener(m_validateListener);
placeField.setLabelText("create Place name:");
placeField.doFillIntoGrid(this, 1);
//
placeNameField = new StringDialogField();
placeNameField.setDialogFieldListener(m_validateListener);
GridDataFactory.create(placeNameField.getTextControl(this)).alignHF().spanH(COLUMNS - 1);
}
// activity name
{
activityField = new CheckDialogField();
activityField.setDialogFieldListener(m_validateListener);
activityField.setLabelText("create Activity name:");
activityField.doFillIntoGrid(this, 1);
//
activityNameField = new StringDialogField();
activityNameField.setDialogFieldListener(m_validateListener);
GridDataFactory.create(activityNameField.getTextControl(this)).alignHF().spanH(COLUMNS - 1);
}
// factory name
{