You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2018/07/19 19:09:59 UTC

[GitHub] sdedic closed pull request #636: NETBEANS-998: update display name when DelayedNode resolves it

sdedic closed pull request #636: NETBEANS-998: update display name when DelayedNode resolves it
URL: https://github.com/apache/incubator-netbeans/pull/636
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/openide.loaders/src/org/openide/loaders/TemplateWizard1.java b/openide.loaders/src/org/openide/loaders/TemplateWizard1.java
index 255f5941e..f0a1bd428 100644
--- a/openide.loaders/src/org/openide/loaders/TemplateWizard1.java
+++ b/openide.loaders/src/org/openide/loaders/TemplateWizard1.java
@@ -195,7 +195,7 @@ public DataShadowFilterChildren (Node or) {
         @Override
         protected Node[] createNodes(Node key) {
             Node n = key;
-            String nodeName = n.getDisplayName();
+            String nodeName = null;
             
             DataObject obj = null;
             DataShadow shadow = n.getCookie(DataShadow.class);
@@ -239,7 +239,7 @@ public DataShadowFilterNode (Node or, org.openide.nodes.Children children, Strin
         }
         
         public String getDisplayName() {
-            return name;
+            return name != null ? name : super.getDisplayName();
         }
         
         // issue 29867, rename should be prohibited


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists