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. (EDIT:) Where does the " ←" indication come from when the folder name decorator is not used? I can see it in my IDE even though I'm not displaying folder names. (EDIT2:) I found it, it's in platform/o.n.swing.tabcontrol/src/org/netbeans/swing/popupswitcher/SwitcherTable.java . All good. -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists