errorConfigDetails = new ErrorConfigDetailsPage(multiPageEditor, mform, isDelegate);
errorConfigDetails.createConfigurationsSection(parent, toolkit);
}
private Section createIdentitySection(Composite parent, FormToolkit toolkit) {
TableWrapData td;
sectionAEMetaDataDetails = FormSection.createTableWrapDataSection(toolkit, parent,
Section.TWISTIE,
Messages.DDE_AEConfigPage_AEConfig_Section_Title,
"Set the properties of ...", 10, 5,
TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1);
final SectionPart spart = new SectionPart(sectionAEMetaDataDetails);
mform.addPart(spart);
spart.initialize(mform); // Need this code. Otherwise, exception in SectionPart !!!
sectionAEMetaDataDetails.setExpanded(true);
// /////////////////////////////////////////////////////////////////////
Composite sectionClient = toolkit.createComposite(sectionAEMetaDataDetails);
TableWrapLayout tl = new TableWrapLayout();
tl.numColumns = 2;
tl.leftMargin = 0;
tl.rightMargin = 0;
tl.topMargin = 10;
tl.bottomMargin = 0;
sectionClient.setLayout(tl);
sectionAEMetaDataDetails.setClient(sectionClient);
// Co-located or Remote
// toolkit.createLabel(sectionClient, "", SWT.NONE);
Composite colocatedOrRemote = toolkit.createComposite(sectionClient, SWT.NONE);
GridLayout gl = new GridLayout(3, true);
gl.marginWidth = 0;
colocatedOrRemote.setLayout(gl);
td = new TableWrapData(TableWrapData.FILL);
td.colspan = 2;
td.grabHorizontal = true;
td.indent = 0;
colocatedOrRemote.setLayoutData(td);
Label label = toolkit.createLabel(colocatedOrRemote, "Deployment:", SWT.NONE);
label.setForeground(toolkit.getColors().getColor(FormColors.TITLE));
deploymentCoLocated = toolkit.createButton(colocatedOrRemote, "Co-located", SWT.RADIO);
deploymentRemote = toolkit.createButton(colocatedOrRemote, "Remote", SWT.RADIO);
deploymentCoLocated.setSelection(true);
deploymentCoLocated.addSelectionListener(deploymentListener);
deploymentRemote.addSelectionListener(deploymentListener);
stackLayoutComposite = new Composite(sectionClient, SWT.NONE);
stackLayout = new StackLayout();
stackLayoutComposite.setLayout(stackLayout);
td = new TableWrapData(TableWrapData.FILL);
td.colspan = 2;
td.grabHorizontal = true;
td.indent = 0;
stackLayoutComposite.setLayoutData(td);