Examples of DeleteCommand


Examples of org.springframework.ide.eclipse.config.graph.model.commands.DeleteCommand

   * @see ComponentEditPolicy#createDeleteCommand(org.eclipse.gef.requests.GroupRequest)
   */
  @Override
  protected Command createDeleteCommand(GroupRequest deleteRequest) {
    StructuredActivity parent = (StructuredActivity) (getHost().getParent().getModel());
    DeleteCommand deleteCmd = new DeleteCommand(parent.getDiagram().getTextEditor());
    deleteCmd.setParent(parent);
    deleteCmd.setChild((Activity) (getHost().getModel()));
    return deleteCmd;
  }
View Full Code Here

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

    }
    else if (getHost().getParent().getModel() instanceof IWebflowState
        || getHost().getParent().getModel() instanceof IInlineFlowState) {
      IWebflowModelElement parent = (IWebflowModelElement) (getHost()
          .getParent().getModel());
      DeleteCommand deleteCmd = new DeleteCommand();
      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

Examples of uk.co.oliwali.HawkEye.commands.DeleteCommand

        commands.add(new PreviewCommand());
        commands.add(new RollbackCommand());
        // if (worldEdit != null) commands.add(new WorldEditRollbackCommand());
        commands.add(new UndoCommand());
        commands.add(new RebuildCommand());
        commands.add(new DeleteCommand());

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.