putValue(Action.SMALL_ICON, UISupport.createImageIcon("/clone_request.gif"));
}
public void actionPerformed(ActionEvent e) {
int ix = conditionList.getSelectedIndex();
GotoCondition config = gotoStep.getConditionAt(ix);
String name = UISupport.prompt("Specify name for condition", "Copy Condition", config.getName());
if (name == null || name.trim().length() == 0) {
return;
}
GotoCondition condition = gotoStep.addCondition(name);
condition.setExpression(config.getExpression());
condition.setTargetStep(config.getTargetStep());
condition.setType(config.getType());
listModel.addElement(name);
conditionList.setSelectedIndex(listModel.getSize() - 1);
}