}
child.setElementParent(state);
}
else if (child.getType() == IActionElement.ACTION_TYPE.ENTRY_ACTION
&& parent instanceof IEntryActions) {
IEntryActions state = (IEntryActions) parent;
IState viewState = (IState) state.getElementParent();
if (viewState.getEntryActions() == null) {
viewState.setEntryActions(state);
}
child.setElementParent(state);
}
else if (child.getType() == IActionElement.ACTION_TYPE.EXIT_ACTION
&& parent instanceof IExitActions) {
IExitActions state = (IExitActions) parent;
IState viewState = (IState) state.getElementParent();
if (viewState.getExitActions() == null) {
viewState.setExitActions(state);
}
child.setElementParent(state);
}