Hi All!
I hope that the SWT newsgroup ist the right place for my problem:
I have a SWT Table in a Eclipse property tab / section. Now I'm trying to
show a context menu on that table.
So I have a composite and added a table on it:
table = this.getWidgetFactory().createTable(parent, SWT.FULL_SELECTION |
SWT.MULTI);
Then I added a menu on the table and some menu items to the menu:
tableMenu = new Menu(table);
MenuItem addItem = new MenuItem(tableMenu, SWT.POP_UP);
...
Additionally I already found an article describing the fact that the mouse
position the MouseEvent returns is relative to the composite the menu
belongs to (so the table in my case). So I found the following "algorithm"
to get the absolute mouse position: