}
else if (oldIndex < tempIndex) {
tempIndex--;
}
if (child.getModel() instanceof IState && tempIndex >= 0) {
command.add(new ReorderStateCommand((IState) child.getModel(),
(IWebflowState) getHost().getModel(), oldIndex,
tempIndex));
}
else if (child.getModel() instanceof IIf && tempIndex >= 0) {
command.add(new ReorderIfCommand((IIf) child.getModel(),