sourceField.setUpdateListener(m_validateListener);
DialogFieldUtils.fillControls(this, sourceField, COLUMNS, 60);
}
// package name
{
packageField = new StringButtonDialogField(new IStringButtonAdapter() {
public void changeControlPressed(DialogField field) {
packageButtonPressed();
}
});
packageField.setDialogFieldListener(m_validateListener);
packageField.setLabelText("&Package name:");
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
{
factoryField = new CheckDialogField();
factoryField.setDialogFieldListener(m_validateListener);
factoryField.setLabelText("use ClientFactory name:");
factoryField.doFillIntoGrid(this, 1);
//
factoryNameField = new StringButtonDialogField(new IStringButtonAdapter() {
public void changeControlPressed(DialogField field) {
factoryButtonPressed();
}
});
factoryNameField.setDialogFieldListener(m_validateListener);