Package org.springframework.ide.eclipse.webflow.ui.graph.commands

Examples of org.springframework.ide.eclipse.webflow.ui.graph.commands.DeleteActionCommand


     * @param child
     *
     * @return
     */
    protected Command createDeleteActionCommand(IActionElement child) {
        DeleteActionCommand cmd = new DeleteActionCommand();
        cmd.setChild(child);
        return cmd;
    }
View Full Code Here


      deleteCmd.setParent(parent);
      deleteCmd.setChild((IState) (getHost().getModel()));
      return deleteCmd;
    }
    else if (getHost().getModel() instanceof IActionElement) {
      DeleteActionCommand deleteCmd = new DeleteActionCommand();
      deleteCmd.setChild((IActionElement) (getHost().getModel()));
      return deleteCmd;
    }
    else if (getHost().getModel() instanceof IExceptionHandler) {
      DeleteExceptionHandlerCommand deleteCmd = new DeleteExceptionHandlerCommand();
      deleteCmd.setChild((IExceptionHandler) (getHost().getModel()));
      return deleteCmd;
    }
    else if (getHost().getParent().getModel() instanceof IDecisionState
        && getHost().getModel() instanceof IIf) {
      IDecisionState parent = (IDecisionState) (getHost().getParent()
          .getModel());
      DeleteIfCommand deleteCmd = new DeleteIfCommand();
      deleteCmd.setParent(parent);
      deleteCmd.setChild((IIf) (getHost().getModel()));
      return deleteCmd;
    }
    return null;
  }
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.webflow.ui.graph.commands.DeleteActionCommand

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.