Package org.tinyuml.ui.diagram.commands

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


  protected void setUp() {
    mockNode1.expects(once()).method("getParent").
      will(returnValue(mockParent.proxy()));
    mockConnection.expects(once()).method("getParent").
      will(returnValue(mockParent.proxy()));
    removeNodeCommand = new DeleteElementCommand((DiagramEditorNotification)
      mockNotification.proxy(), (DiagramElement) mockNode1.proxy());
    removeConnectionCommand = new DeleteElementCommand(
      (DiagramEditorNotification) mockNotification.proxy(),
      (DiagramElement) mockConnection.proxy());
    connections.add((Connection) mockConnection.proxy());
  }
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() {
    Collection<DiagramElement> elements = getSelectedElements();
    elements.remove(diagram); // prevent that the diagram is deleted
    execute(new DeleteElementCommand(this, elements));
  }
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.