Examples of DeleteElementCommand


Examples of org.drools.eclipse.flow.common.editor.core.command.DeleteElementCommand

*/
public class ElementEditPolicy extends ComponentEditPolicy {

    protected Command createDeleteCommand(GroupRequest deleteRequest) {
        ElementContainer parent = (ElementContainer) getHost().getParent().getModel();
        DeleteElementCommand deleteCmd = new DeleteElementCommand();
        deleteCmd.setParent(parent);
        deleteCmd.setChild((ElementWrapper) (getHost().getModel()));
        return deleteCmd;
    }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

  /**
   * Removes the current selection.
   */
  public void deleteSelection() {
    Collection<DiagramElement> elements = getSelectedElements();
    execute(new DeleteElementCommand(this, elements));
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

   */
  @Override
  protected void setUp() {
    mockElement.expects(once()).method("getParent").
      will(returnValue(mockParent.proxy()));
    command = new DeleteElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), (DiagramElement) mockElement.proxy());
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

   * Removes the current selection.
   */
  public void deleteSelection() {
    DiagramElement element = getSelectedElement();
    if (element != null) {
      execute(new DeleteElementCommand(this, element));
    }
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

    List<DiagramElement> nodesToRemove = new ArrayList<DiagramElement>();
    nodesToRemove.add((DiagramElement) mockNode1.proxy());
   
    List<DiagramElement> connectionsToRemove = new ArrayList<DiagramElement>();
    connectionsToRemove.add((DiagramElement) mockConnection.proxy());
    removeNodeCommand = new DeleteElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), nodesToRemove);
    removeConnectionCommand = new DeleteElementCommand(
      (DiagramEditorNotification) mockNotification.proxy(),
      connectionsToRemove);
    connections.add((Connection) mockConnection.proxy());
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

   * Removes the current selection.
   */
  public void deleteSelection() {
    DiagramElement element = getSelectedElement();
    if (element != null) {
      execute(new DeleteElementCommand(this, element));
    }
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

   * Removes the current selection.
   */
  public void deleteSelection() {
    DiagramElement element = getSelectedElement();
    if (element != null) {
      execute(new DeleteElementCommand(this, element));
    }
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

  /**
   * Removes the current selection.
   */
  public void deleteSelection() {
    Collection<DiagramElement> elements = getSelectedElements();
    execute(new DeleteElementCommand(this, elements));
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

  /**
   * Removes the current selection.
   */
  public void deleteSelection() {
    Collection<DiagramElement> elements = getSelectedElements();
    execute(new DeleteElementCommand(this, elements));
  }
View Full Code Here

Examples of org.tinyuml.ui.diagram.commands.DeleteElementCommand

    List<DiagramElement> nodesToRemove = new ArrayList<DiagramElement>();
    nodesToRemove.add((DiagramElement) mockNode1.proxy());
   
    List<DiagramElement> connectionsToRemove = new ArrayList<DiagramElement>();
    connectionsToRemove.add((DiagramElement) mockConnection.proxy());
    removeNodeCommand = new DeleteElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), nodesToRemove);
    removeConnectionCommand = new DeleteElementCommand(
      (DiagramEditorNotification) mockNotification.proxy(),
      connectionsToRemove);
    connections.add((Connection) mockConnection.proxy());
  }
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.