AbstractSection.spacer(composite);
// create m_taePrompt
createWideLabel(composite, "Delegate Components:");
delegateComponentListGUI = new List(composite, SWT.MULTI | SWT.BORDER | SWT.V_SCROLL);
GridData gridData = new GridData(GridData.FILL_HORIZONTAL);
gridData.heightHint = 100;
delegateComponentListGUI.setLayoutData(gridData);
boolean bContainsConstituentsAlreadyInAggregate = false;
boolean bContainsAggregate = false;
for (int i = 0; i < m_DelegateComponentDescriptors.size(); i++) {
String sAdditional = "";
if (m_aggregateFileName.equals(m_DelegateComponentDescriptors.get(i))) {
sAdditional = "**";
bContainsAggregate = true;
}
delegateComponentListGUI.add((String) m_DelegateComponentDescriptors.get(i) + sAdditional);
}
delegateComponentListGUI.addSelectionListener(dialogSelectionListener);
if (bContainsConstituentsAlreadyInAggregate && bContainsAggregate) {
specialMsgLabel
.setText("(* indicates delegate component is already part of aggregate, ** is aggregate currently being configured)");
} else if (bContainsConstituentsAlreadyInAggregate) {
specialMsgLabel.setText("(* indicates delegate component is already part of aggregate)");
} else if (bContainsAggregate) {
specialMsgLabel.setText("(** is aggregate currently being configured)");
}
createWideLabel(composite, "Delegate Component Description:");
delegateComponentDescriptionText = new Text(composite, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL
| SWT.BORDER);
delegateComponentDescriptionText.setLayoutData(new GridData(GridData.FILL_BOTH));
GridData dcgd = new GridData(GridData.FILL_HORIZONTAL);
dcgd.heightHint = 50;
delegateComponentDescriptionText.setLayoutData(dcgd);
delegateComponentDescriptionText.setEditable(false);
createWideLabel(composite, "Input Types:");
inputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
inputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
createWideLabel(composite, "Output Types:");
outputTypesList = new List(composite, SWT.BORDER | SWT.V_SCROLL);
outputTypesList.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
// autoAddToFlowButton = new Button(composite, SWT.CHECK);
// autoAddToFlowButton.setText("Add selected delegate components to end of flow");
// autoAddToFlowButton.setSelection(true);