[hg] main-silver: fixed imports, removed not used code

  • From: Tomas Stupka < >
  • To: ,
  • Subject: [hg] main-silver: fixed imports, removed not used code
  • Date: Fri, 03 May 2013 03:47:55 -0700

changeset e1b9a412b64b in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/e1b9a412b64b
description:
        fixed imports, removed not used code

diffstat:

 
bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/nodes/BugtrackingRootNode.java
 |  58 +---------
 1 files changed, 1 insertions(+), 57 deletions(-)

diffs (88 lines):

diff --git 
a/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/nodes/BugtrackingRootNode.java
 
b/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/nodes/BugtrackingRootNode.java
--- 
a/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/nodes/BugtrackingRootNode.java
+++ 
b/bugtracking.bridge/src/org/netbeans/modules/bugtracking/bridge/nodes/BugtrackingRootNode.java
@@ -47,12 +47,10 @@
 import java.awt.event.ActionEvent;
 import java.beans.PropertyChangeEvent;
 import java.beans.PropertyChangeListener;
-import java.beans.PropertyVetoException;
 import java.util.Collection;
 import java.util.Collections;
 import java.util.Iterator;
 import java.util.List;
-import java.util.logging.Level;
 import java.util.logging.Logger;
 import javax.swing.AbstractAction;
 import javax.swing.Action;
@@ -60,16 +58,11 @@
 import org.netbeans.modules.bugtracking.api.Repository;
 import org.netbeans.modules.bugtracking.api.RepositoryManager;
 import org.netbeans.modules.bugtracking.util.RepositoryComparator;
-import org.openide.explorer.ExplorerManager;
 import org.openide.nodes.*;
-import org.openide.util.Mutex;
 import org.openide.util.NbBundle;
-import org.openide.util.RequestProcessor;
-import org.openide.windows.TopComponent;
-import org.openide.windows.WindowManager;
 
 /**
- * Root node representing Bugtracking in the Servises window
+ * Root node representing Bugtracking in the Services window
  *
  * @author Tomas Stupka
  */
@@ -168,53 +161,4 @@
         }
     }
 
-    public static void selectNode(final String... path) {
-        Mutex.EVENT.readAccess(new Runnable() {
-            @Override
-            public void run() {
-                TopComponent tab = 
WindowManager.getDefault().findTopComponent("services"); // NOI18N
-                if (tab == null) {
-                    // XXX have no way to open it, other than by calling 
ServicesTabAction
-                    LOG.fine("No ServicesTab found"); // NOI18N
-                    return;
                 }
-                tab.open();
-                tab.requestActive();
-                if (!(tab instanceof ExplorerManager.Provider)) {
-                    LOG.fine("ServicesTab not an ExplorerManager.Provider"); 
// NOI18N
-                    return;
-                }
-                final ExplorerManager mgr = ((ExplorerManager.Provider) 
tab).getExplorerManager();
-                final Node root = mgr.getRootContext();
-                RequestProcessor.getDefault().post(new Runnable() {
-                    @Override
-                    public void run() {
-                        Node repository = NodeOp.findChild(root, 
BUGTRACKING_NODE_NAME);
-                        if (repository == null) {
-                            LOG.fine("ServicesTab does not contain node " + 
BUGTRACKING_NODE_NAME); // NOI18N
-                            return;
-                        }
-                        Node _selected;
-                        try {
-                            _selected = NodeOp.findPath(repository, path);
-                        } catch (NodeNotFoundException x) {
-                            LOG.log(Level.FINE, "Could not find subnode", 
x); // NOI18N
-                            _selected = x.getClosestNode();
-                        }
-                        final Node selected = _selected;
-                        Mutex.EVENT.readAccess(new Runnable() {
-                            @Override
-                            public void run() {
-                                try {
-                                    mgr.setSelectedNodes(new Node[] 
{selected});
-                                } catch (PropertyVetoException x) {
-                                    LOG.log(Level.FINE, "Could not select 
path", x); // NOI18N
-                                }
-                            }
-                        });
-                    }
-                });
-            }
-        });
-    }    
-}

[hg] main-silver: fixed imports, removed not used code

Tomas Stupka 05/03/2013

Project Features

About this Project

ConnectedDeveloper was started in November 2009, is owned by tpavek, and has 66 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close