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 - Icon for contextual menu item for nodes
Summary: Icon for contextual menu item for nodes
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 04:28 UTC by tdanard
Modified: 2015-08-11 04:28 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.