How to correctly register an Action on the GridRegion.Body Mouse.RMB [message #1811248] |
Thu, 29 August 2019 12:43 |
Ludwig Moser Messages: 476 Registered: July 2009 |
Senior Member |
|
|
Hello,
i'm trying to react on user interaction on the GridRegion.Body
when the user clicks RIGHT_BUTTON, an Action/Command shall be executed, as this populates information needed in the popup menu.
i tried registering the PopupMenuAction like this:
uiBindingRegistry.registerMouseDownBinding(new MouseEventMatcher(
SWT.NONE, GridRegion.BODY, MouseEventMatcher.RIGHT_BUTTON),
new SelectPopupMenuAction(natTableWrapper, bodyHeaderMenu, selectionLayer));
Note that
class SelectPopupMenuAction extends AbstractMouseSelectionAction
it selects the row (if the Mouse was above an Row) executes some more code then opens the PopupMenu.
this is all working, but it only pops up, if the Mouse was above an area where Items are listed.
I need this Action to be triggered when no Item is below too!
As if no Item is below i need to clear a property in my Application.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03140 seconds