getSection().setText(Messages.getString("FlowSection.ComponentEngineFlowTitle")); //$NON-NLS-1$
getSection().setDescription(Messages.getString("FlowSection.ComponentEngineFlowDescription")); //$NON-NLS-1$
FlowControllerDeclaration fcd = getFlowControllerDeclaration();
flowList.setEnabled(true);
FlowConstraints flowConstraints = getModelFlow();
FlowNodes nodesModel = new FlowNodes(flowConstraints);
String[] nodes = nodesModel.getFlow();
if (null == nodes)
nodesModel.setFlow(nodes = stringArray0);
// add them to the list
for (int i = 0; i < nodes.length; i++) {
TableItem item = new TableItem(flowList, SWT.NONE);
item.setImage(TAEConfiguratorPlugin.getImage(TAEConfiguratorPlugin.IMAGE_ANNOTATOR) //$NON-NLS-1$
);
item.setText(0, nodes[i]);
}
packTable(flowList);
if (null == fcd) {
// Not a custom, user-defined flow
FixedFlow ff;
if (null == flowConstraints) {
// force fixed flow if nothing is specified
getAnalysisEngineMetaData().setFlowConstraints(
flowConstraints = ff = new FixedFlow_impl());
ff.setFixedFlow(stringArray0);
}
String modelFlowType = flowConstraints.getFlowConstraintsType();
flowControllerChoice.setText(modelFlowType
.equals(CapabilityLanguageFlow.FLOW_CONSTRAINTS_TYPE) ? CAPABILITY_LANGUAGE_FLOW
: FIXED_FLOW);