Reputation: 2601
The default context menu for the org.eclipse.swt.widgets.Text class is quite a rich thing, packed with features that the user has come to depend on ...
However, as soon as I assign my own context menu with Control.setMenu() all that richness goes away. Is there a means of inserting my own MenuItem object into this system-created menu .. can I have my cake and eat it?
Your clues are always most welcome.
M.
Upvotes: 5
Views: 1302
Reputation: 12718
You cannot access the native menu from SWT. It is there, if there are no other menus set for the control. As you noticed, as soon as you set your own menu for the control, this new menu will completely replace the native menu.
As far as I can see, the behavior is common to all platforms.
Upvotes: 2