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/05/03 22:52:29 UTC

[GitHub] emilianbold closed pull request #527: Calls the model with a correct object and not the newly created tooltip

emilianbold closed pull request #527: Calls the model with a correct object and not the newly created tooltip
URL: https://github.com/apache/incubator-netbeans/pull/527
 
 
   

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/spi.viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java b/spi.viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java
index a071c0a52..a6157b41c 100644
--- a/spi.viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java
+++ b/spi.viewmodel/src/org/netbeans/modules/viewmodel/TreeModelNode.java
@@ -2099,7 +2099,7 @@ private String updateShortDescription() {
                 String sd = null;
                 try {
                     tooltip.putClientProperty("getShortDescription", object); // NOI18N
-                    Object tooltipObj = model.getValueAt(tooltip, id);
+                    Object tooltipObj = model.getValueAt(object, id);
                     if (tooltipObj != null) {
                         sd = adjustHTML(tooltipObj.toString());
                     }


 

----------------------------------------------------------------
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