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.

Bug 254255

Summary: Icon for contextual menu item for nodes
Product: platform Reporter: tdanard
Component: NodesAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description tdanard 2015-08-11 04:28:52 UTC
When you open a contextual menu item on a NetBeans node, the icon is never displayed, even though there is clearly space for it. An icon is displayed only for:

- a sub menu of a contextual menu,
- a menu item from a menu bar

but never the first level of a contextual menu.

From the NetBeans code, it looks like it's not a bug, but a UI design choice: there is a boolean passed around to indicate whether the context is a "popup". If the context is "popup", no icon is ever displayed.

This design choice might be fine for the NetBeans IDE, but this doesn't work for all applications based on the NetBeans platform. This could be controlled by a branding option. It would be "false" for the NetBeans IDE, but could be changed for other applications.

In my personal case, I would like to easily control whether to show an icon for some contextual menus, and not for some others. This "contextual icon" setting could be an action attribute instead of a branding setting. I propose the CONTEXTUAL_SMALL_ICON key.