eirikbakke commented on code in PR #8213:
URL: https://github.com/apache/netbeans/pull/8213#discussion_r1937433030


##########
platform/core.multitabs/src/org/netbeans/core/multitabs/impl/DocumentSwitcherTable.java:
##########
@@ -113,9 +111,14 @@ public Component prepareRenderer( TableCellRenderer 
renderer, int row, int colum
             } else {
                 if(null != folderNameDecorator && null != item) {
                     TabData tab = item.getTabData();
-                    if(null != tab) {
-                        itemText = folderNameDecorator.getText(tab) + 
(item.isActive() ? " ←" : ""); //NOI18N
-                        lbl.setText(itemText);
+                    if (null != tab) {
+                        String decorated = folderNameDecorator.getText(tab);
+                        if (decorated != null) {
+                            if (item.isActive()) {
+                                decorated +=  " ←"; //NOI18N
+                            }
+                            lbl.setText(decorated);

Review Comment:
   Ah, I see, it's in the superclass. How come the " ←" indication is used when 
showing folder names but not otherwise? I think the superclass indicates the 
active element using bold font, rather than with an arrow character.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to