[hg] main-silver: Issue #222853 - Find Usages should expand node...

  • From: Ralph Benjamin Ruijs < >
  • To: ,
  • Subject: [hg] main-silver: Issue #222853 - Find Usages should expand node...
  • Date: Mon, 03 Dec 2012 12:45:06 -0800

changeset fb9ddcc1d708 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/fb9ddcc1d708
description:
        Issue #222853 - Find Usages should expand nodes on selection

diffstat:

 
refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/CheckNodeListener.java
 |  44 +++++----
 1 files changed, 23 insertions(+), 21 deletions(-)

diffs (63 lines):

diff --git 
a/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/CheckNodeListener.java
 
b/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/CheckNodeListener.java
--- 
a/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/CheckNodeListener.java
+++ 
b/refactoring.api/src/org/netbeans/modules/refactoring/spi/impl/CheckNodeListener.java
@@ -179,17 +179,18 @@
                         o = ((TreeElement) o).getUserObject();
                         if (o instanceof RefactoringElement) {
                             openDiff(node);
-                        } else if (o instanceof FileObject) {
-                            tree.expandPath(path);
-                            TreePath pathForRow = tree.getPathForRow(row+1);
-                            CheckNode lastPathComponent = (CheckNode) 
pathForRow.getLastPathComponent();
-                            Object userObject = 
lastPathComponent.getUserObject();
-                            if (userObject instanceof TreeElement) {
-                                Object refElement = ((TreeElement) 
userObject).getUserObject();
-                                if (refElement instanceof RefactoringElement)
-                                    openDiff(lastPathComponent);
                             }
-                        }
+//                        else if (o instanceof FileObject) {
+//                            tree.expandPath(path);
+//                            TreePath pathForRow = 
tree.getPathForRow(row+1);
+//                            CheckNode lastPathComponent = (CheckNode) 
pathForRow.getLastPathComponent();
+//                            Object userObject = 
lastPathComponent.getUserObject();
+//                            if (userObject instanceof TreeElement) {
+//                                Object refElement = ((TreeElement) 
userObject).getUserObject();
+//                                if (refElement instanceof 
RefactoringElement)
+//                                    openDiff(lastPathComponent);
+//                            }
+//                        }
                     }
                 }
             }
@@ -215,18 +216,19 @@
                     o = ((TreeElement) o).getUserObject();
                     if (o instanceof RefactoringElement) {
                         openDiff(node);
-                    } else if (o instanceof FileObject) {
-                        tree.expandPath(path);
-                        TreePath pathForRow = tree.getPathForRow(row + 1);
-                        CheckNode lastPathComponent = (CheckNode) 
pathForRow.getLastPathComponent();
-                        Object userObject = 
lastPathComponent.getUserObject();
-                        if (userObject instanceof TreeElement) {
-                            Object refElement = ((TreeElement) 
userObject).getUserObject();
-                            if (refElement instanceof RefactoringElement) {
-                                openDiff(lastPathComponent);
                             }
-                        }
-                    }
+//                    else if (o instanceof FileObject) {
+//                        tree.expandPath(path);
+//                        TreePath pathForRow = tree.getPathForRow(row + 1);
+//                        CheckNode lastPathComponent = (CheckNode) 
pathForRow.getLastPathComponent();
+//                        Object userObject = 
lastPathComponent.getUserObject();
+//                        if (userObject instanceof TreeElement) {
+//                            Object refElement = ((TreeElement) 
userObject).getUserObject();
+//                            if (refElement instanceof RefactoringElement) {
+//                                openDiff(lastPathComponent);
+//                            }
+//                        }
+//                    }
                 }
             }
         }

[hg] main-silver: Issue #222853 - Find Usages should expand node...

Ralph Benjamin Ruijs 12/03/2012

Project Features

About this Project

Editor was started in November 2009, is owned by Martin Ryzl, and has 147 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close