data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
data1.widthHint = 120;
addActionButton.setLayoutData(data1);
addActionButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Action action = new Action();
action.createNew(parentElement);
action.setType(type);
if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
actions.add(action);
configsViewer.refresh();
}
}
});
if (WebflowModelXmlUtils.isVersion1Flow(parentElement)) {
addBeanActionButton = new Button(buttonArea, SWT.PUSH);
addBeanActionButton.setText("Add Bean Action");
data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
data1.widthHint = 120;
addBeanActionButton.setLayoutData(data1);
addBeanActionButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
BeanAction action = new BeanAction();
action.createNew(parentElement);
action.setType(type);
if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
actions.add(action);
configsViewer.refresh();
}
}
});
}
addEvaluationButton = new Button(buttonArea, SWT.PUSH);
if (WebflowModelXmlUtils.isVersion1Flow(parentElement)) {
addEvaluationButton.setText("Add Evaluation Action");
}
else {
addEvaluationButton.setText("Add Evaluate");
}
data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
data1.widthHint = 120;
addEvaluationButton.setLayoutData(data1);
addEvaluationButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
EvaluateAction action = new EvaluateAction();
action.createNew(parentElement);
action.setType(type);
if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
actions.add(action);
configsViewer.refresh();
}
}
});
addSetButton = new Button(buttonArea, SWT.PUSH);
addSetButton.setText("Add Set");
data1 = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
data1.widthHint = 120;
addSetButton.setLayoutData(data1);
addSetButton.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
Set action = new Set();
action.createNew(parentElement);
action.setType(type);
if (DialogUtils.openPropertiesDialog(parentElement, action, true) == Dialog.OK) {
actions.add(action);
configsViewer.refresh();
}
}