}
}
if (s instanceof IDecisionState) {
for (IIf i : ((IDecisionState) s).getIfs()) {
if (i.getThenTransition() != null) {
IIfTransition ifTrans = (IIfTransition) i.getThenTransition();
if (state.getId().equals(ifTrans.getToStateId())) {
if (!((ITransitionableTo) state).getInputTransitions()
.contains(ifTrans)) {
((IWebflowModelElement) ifTrans.getElementParent())
.fireStructureChange(OUTPUTS, ifTrans);
((ITransitionableTo) state).addInputTransition(ifTrans);
}
}
}
if (i.getElseTransition() != null) {
IIfTransition ifTrans = (IIfTransition) i.getElseTransition();
if (state.getId().equals(ifTrans.getToStateId())) {
if (!((ITransitionableTo) state).getInputTransitions()
.contains(ifTrans)) {
((IWebflowModelElement) ifTrans.getElementParent())
.fireStructureChange(OUTPUTS, ifTrans);
((ITransitionableTo) state).addInputTransition(ifTrans);
}
}
}