eclipse-nattable / nattable

High performance SWT data grid
https://eclipse.dev/nattable/
Eclipse Public License 2.0
15 stars 6 forks source link

[Context Menu] Add support for adding sub menus #35

Closed fipro78 closed 8 months ago

fipro78 commented 9 months ago

NatTable supports the definition of context menus to the table via the PopupMenuBuilder. Adding sub menus is currently only possible by creating a custom MenuItemProvider. But that approach does not support the dynamics for enabled/disabled or visible/invisible rendering of menu items. For this a MenuManager needs to be used. The current implementation makes it hard to implement this form the outside of the PopupMenuBuilder.

The PopupMenuBuilder should directly support the configuration of sub menus using the builder pattern.

fipro78 commented 8 months ago

Fixed and verified by user project