This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
It would be nice to be able to tell OutlineView/TreeTableView not to render icons for nodes. There are situations where the icon doesn't provide any additional value and just distracts the user/consumes the screen estate. For example, the CSS Styles view is using TreeTableView without icons and Knockout view is using OutlineView without icons. These views have to use some hacks not to paint the icons. It would be great to have some API for this instead.
Created attachment 149868 [details] The proposed API change
Please review the proposed API change introducing the ability not to show node icons in OutlineView and TreeView and it's descendants.
Created attachment 149869 [details] The associated non-API change in DefaultOutlineCellRenderer
Created attachment 149870 [details] Usage of the new API by KnockoutPanel and CSSStylesSelectionPanel
Thanks for the review. If there are no objections, I'll push the change on Monday.
The API change and it's usage by knockout is pushed: http://hg.netbeans.org/core-main/rev/3eeef3ec5881 http://hg.netbeans.org/core-main/rev/533366e1c589
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/3eeef3ec5881 User: mentlicher@netbeans.org Log: #247556: It is possible not to show icons in OutlineView and TreeView.