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