return cmd;
}
else if (getHost().getModel() instanceof IfTransition) {
IfTransition t = (IfTransition) getHost().getModel();
if (!t.isThen()) {
DeleteIfTransitionCommand cmd = new DeleteIfTransitionCommand();
cmd.setTransition(t);
cmd.setSource(t.getFromIf());
cmd.setTarget(t.getToState());
return cmd;
}
}
return null;
}