Package org.tinyuml.ui.diagram.commands

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


   */
  @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

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

    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

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

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

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

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

    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

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

TOP

Related Classes of org.tinyuml.ui.diagram.commands.DeleteElementCommand

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.