[hg] main-silver: #223899 - When editing javascript code, naviga...

  • From: Milutin Kristofic < >
  • To:
  • Subject: [hg] main-silver: #223899 - When editing javascript code, naviga...
  • Date: Wed, 06 Feb 2013 13:58:26 -0800

changeset 09c7b15fec22 in main-silver ((none))
details: http://hg.netbeans.org/main-silver/rev/09c7b15fec22
description:
        #223899 - When editing javascript code, navigator show "null - 
Navigator", expected "ajax.js - Navigator" or something similar

diffstat:

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

diffs (25 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
@@ -101,7 +101,7 @@
     private OpenAction openAction;
     private StructureItem description;
     private ClassMemberPanelUI ui;
-    private FileObject fileObject; // For the root description
+    private final FileObject fileObject; // For the root description
            
     /** Creates a new instance of TreeNode */
     public ElementNode( StructureItem description, ClassMemberPanelUI ui, 
FileObject fileObject) {
@@ -132,8 +132,12 @@
                    
     @Override
     public java.lang.String getDisplayName() {
+        if (description.getName() == null) {
+            return fileObject.getNameExt();
+        } else {
         return description.getName();
     }
+    }
             
     @Override
     public String getHtmlDisplayName() {

[hg] main-silver: #223899 - When editing javascript code, naviga...

Milutin Kristofic 02/06/2013

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 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close