Package org.tinyuml.ui.commands

Examples of org.tinyuml.ui.commands.DeleteDiagramCommand


  /**
   * {@inheritDoc}
   */
  @Override
  protected void setUp() throws Exception {
    deleteCommand = new DeleteDiagramCommand((UmlModel) mockUmlModel.proxy(),
      (UmlDiagram) mockUmlDiagram.proxy());
  }
View Full Code Here


    if (appState.getCurrentFocusedComponent() instanceof DiagramTree) {
      DiagramTree tree = (DiagramTree) appState.getCurrentFocusedComponent();
      if (tree.getSelectionPath() != null) {
        DefaultMutableTreeNode node = (DefaultMutableTreeNode)
          tree.getSelectionPath().getLastPathComponent();
        DeleteDiagramCommand command = new DeleteDiagramCommand(
          appState.getUmlModel(), (UmlDiagram) node.getUserObject());
        appState.execute(command);
      }
    } else if (appState.getCurrentEditor() != null) {
      appState.getCurrentEditor().deleteSelection();
View Full Code Here

TOP

Related Classes of org.tinyuml.ui.commands.DeleteDiagramCommand

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.