Package org.springframework.ide.eclipse.config.ui.actions

Examples of org.springframework.ide.eclipse.config.ui.actions.DeleteNodeAction


    treeViewer.getTree().setSelection(root);
    insert.run();
    assertEquals(1, root.getItemCount());

    IDOMElement node = (IDOMElement) root.getItem(0).getData();
    DeleteNodeAction delete = new DeleteNodeAction(textView, node);
    delete.run();
    assertEquals(0, root.getItemCount());
  }
View Full Code Here


    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);
    IDOMElement node = (IDOMElement) root.getItem(0).getData();
    assertEquals(20, root.getItemCount());

    DeleteNodeAction action = new DeleteNodeAction(textView, node);
    action.run();
    assertEquals(19, root.getItemCount());
  }
View Full Code Here

      Object obj = selection.getFirstElement();
      if (obj != null && obj instanceof IDOMElement) {
        IDOMElement node = (IDOMElement) obj;
        createNodeInsertActions(manager, node);
        manager.add(new Separator());
        manager.add(new DeleteNodeAction(textView, node));
      }
    }
    else {
      IDOMDocument doc = getConfigEditor().getDomDocument();
      if (doc != null) {
View Full Code Here

TOP

Related Classes of org.springframework.ide.eclipse.config.ui.actions.DeleteNodeAction

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.