|
|
Re: [neon] AbstractMenu.execAboutToShow() [message #1725451 is a reply to message #1725440] |
Thu, 03 March 2016 15:15 |
|
You're right, execAboutToShow() has been removed with the Html UI. In the new UI each table has a menu-bar that always displays all currently visible menu-items of the table, it also contains the menu-items of the context-menu (which in the old UI have been only visible, when you've right-clicked on a table-row). Because all menu-items are always visible, execAboutToShow makes no sense anymore.
Instead you should manipulate the menu-items when the selection in your table changes. When we've migrated our own software to the new UI, we've replaced all occurrences of execAboutToShow() with AbstractMenu#execOwnerValueChanged(), which is triggered when the selection of the menu-owner (table, tree, etc.) changes. Check the javadoc on the method for more infos.
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
Re: [neon] AbstractMenu.execAboutToShow() [message #1725719 is a reply to message #1725706] |
Mon, 07 March 2016 09:29 |
|
Usually you could use getContextColumn() to check which column has been clicked. However, in the current implementation the context-column is not updated when the context-menu is openend, so getContextColumn() will not work in your case. I guess a simple solution is, to send an additional (right) click event to the UI server, before the context-menu is opened in the UI. With that you could overwrite execRowClick(), check getContextColumn() and change the visibility or enabled-state of the menu-items. Would that work for you?
Would you please open a Bugzilla-ticket for that change?
Eclipse Scout Homepage | Documentation | GitHub
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03105 seconds