else {
flowLabel.setText("Subflow");
}
// Create a decorated field with a required field decoration.
DecoratedField flowField = new DecoratedField(nameGroup, SWT.SINGLE | SWT.BORDER,
new TextControlCreator());
FieldDecoration requiredFieldIndicator = FieldDecorationRegistry.getDefault()
.getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
flowField.addFieldDecoration(requiredFieldIndicator, SWT.TOP | SWT.LEFT, true);
flowText = (Text) flowField.getControl();
GridData data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
flowField.getLayoutControl().setLayoutData(data);
if (this.state != null && this.state.getFlow() != null) {
this.flowText.setText(this.state.getFlow());
}
flowText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
validateInput();
}
});
// add the indent after getting the decorated field
data = new GridData(GridData.FILL_HORIZONTAL);
data.horizontalIndent = FieldDecorationRegistry.getDefault().getMaximumDecorationWidth();
nameText.setLayoutData(data);
DialogUtils.attachContentAssist(flowText, WebflowUtils.getWebflowConfigNames());
browseFlowButton = new Button(nameGroup, SWT.PUSH);
browseFlowButton.setText("...");
browseFlowButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_END));
browseFlowButton.addSelectionListener(buttonListener);
if (!WebflowModelXmlUtils.isVersion1Flow(state)) {
parentLabel = new Label(nameGroup, SWT.NONE);
parentLabel.setText("Parent state id");
parentText = new Text(nameGroup, SWT.SINGLE | SWT.BORDER);
if (this.state != null && this.state.getParent() != null) {
this.parentText.setText(this.state.getParent());
}
parentText.setLayoutData(data);
parentText.addModifyListener(new ModifyListener() {
public void modifyText(ModifyEvent e) {
validateInput();
}
});
new Label(nameGroup, SWT.NONE);
}
item1.setControl(groupActionType);
// add attribute mapper
item2.setText("Attribute Mapper");
item2.setImage(WebflowUIImages.getImage(WebflowUIImages.IMG_OBJS_ATTRIBUTE_MAPPER));
Composite attributeMapperGroup = new Composite(folder, SWT.NULL);
attributeMapperGroup.setLayoutData(new GridData(GridData.FILL_BOTH));
layout1 = new GridLayout();
layout1.numColumns = 1;
layout1.marginWidth = 0;
layout1.marginHeight = 0;
attributeMapperGroup.setLayout(layout1);
Group attributeMapperType = new Group(attributeMapperGroup, SWT.NULL);
layoutAttMap = new GridLayout();
layoutAttMap.marginWidth = 3;
layoutAttMap.marginHeight = 3;
attributeMapperType.setText(" Attribute Mapper ");
attributeMapperType.setLayoutData(new GridData(GridData.FILL_BOTH));
attributeMapperType.setLayout(layoutAttMap);
Composite attributeMapperTypeGroup = new Composite(attributeMapperType, SWT.NULL);
attributeMapperTypeGroup.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
layout1 = new GridLayout();
layout1.numColumns = 3;
layout1.marginWidth = 5;
attributeMapperTypeGroup.setLayout(layout1);
attributeMapperBeanLabel = new Label(attributeMapperTypeGroup, SWT.NONE);
attributeMapperBeanLabel.setText("Bean");
// Create a decorated field with a required field decoration.
DecoratedField beanField = new DecoratedField(attributeMapperTypeGroup, SWT.SINGLE
| SWT.BORDER, new TextControlCreator());
FieldDecoration requiredFieldIndicator3 = FieldDecorationRegistry.getDefault()
.getFieldDecoration(FieldDecorationRegistry.DEC_CONTENT_PROPOSAL);
beanField.addFieldDecoration(requiredFieldIndicator3, SWT.TOP | SWT.LEFT, true);
attributeMapperBeanText = (Text) beanField.getControl();
data = new GridData(GridData.FILL_HORIZONTAL);
beanField.getLayoutControl().setLayoutData(data);
if (this.state != null && this.state.getAttributeMapper() != null && this.state.getAttributeMapper()
.getBean() != null) {
this.attributeMapperBeanText.setText(this.state.getAttributeMapper().getBean());
}
if (this.state != null && this.state.getSubflowAttributeMapper() != null) {