/**
* @see org.openquark.util.ui.WizardCard#onFinish()
*/
@Override
protected boolean onFinish () {
GemEntity gemEntity = wizardState.getGemEntity();
if (gemEntity == null) {
return false;
}
List<InputBinding> inputBindings = null;
try {
inputBindings = getInputBindings();
} catch (IllegalStateException e) {
JOptionPane.showMessageDialog(this, e.getLocalizedMessage(), "BAM Sample", JOptionPane.WARNING_MESSAGE);
return false;
}
if (inputBindings == null) {
InputListItem listItem = getFirstUnboundListItem();
JOptionPane.showMessageDialog(this, "You must provide a binding for '" + listItem.name + "'", "BAM Sample", JOptionPane.WARNING_MESSAGE);
return false;
}
switch (usage) {
case FOR_TRIGGER:
TriggerDescription triggerDescription = new TriggerDescription (gemEntity.getName().getQualifiedName(), inputBindings);
jobDescription.addTrigger(triggerDescription);
break;
case FOR_ACTION:
ActionDescription actionDescription = new ActionDescription (gemEntity.getName().getQualifiedName(), inputBindings);
jobDescription.addAction(actionDescription);
break;
default: