[hg] main-silver: adding instance of FileObject to the ElementNo...

  • From: Marek Fukala < >
  • To:
  • Subject: [hg] main-silver: adding instance of FileObject to the ElementNo...
  • Date: Wed, 10 Jul 2013 20:34:28 -0700

changeset 6626004a7644 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/6626004a7644
description:
        adding instance of FileObject to the ElementNode's lookup

diffstat:

 csl.api/src/org/netbeans/modules/csl/navigation/ElementNode.java |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (20 lines):

diff --git a/csl.api/src/org/netbeans/modules/csl/navigation/ElementNode.java 
b/csl.api/src/org/netbeans/modules/csl/navigation/ElementNode.java
--- a/csl.api/src/org/netbeans/modules/csl/navigation/ElementNode.java
+++ b/csl.api/src/org/netbeans/modules/csl/navigation/ElementNode.java
@@ -74,6 +74,7 @@
 import org.openide.nodes.Node;
 import org.openide.util.ImageUtilities;
 import org.openide.util.NbBundle;
+import org.openide.util.lookup.Lookups;
 
 /** 
  * This file is originally from Retouche, the Java Support 
@@ -105,7 +106,7 @@
            
     /** Creates a new instance of TreeNode */
     public ElementNode( StructureItem description, ClassMemberPanelUI ui, 
FileObject fileObject) {
-        super(description.isLeaf() ? Children.LEAF: new 
ElementChildren(description, ui, fileObject));
+        super(description.isLeaf() ? Children.LEAF: new 
ElementChildren(description, ui, fileObject), Lookups.fixed(fileObject));
         this.description = description;
         setDisplayName( description.getName() ); 
         this.ui = ui;

[hg] main-silver: adding instance of FileObject to the ElementNo...

Marek Fukala 07/11/2013

Project Features

About this Project

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