SWT Text & context menu [message #457008] |
Tue, 14 June 2005 14:30 |
Eclipse User |
|
|
|
Originally posted by: didier.montet.oreka.com
Hello
I use Eclipse 3.0.2 on Windows XP.
Class Text
1. When no menu is set for a text, this one shows a context menu (undo |
cut, copy, paste | select all) when you click the right button of your
mouse.
I would like to trap this default menu (I suppose that this is the OS that
creates it) to add some items.
How can I do that.
In fact, I thought that aText.getMenu() was the solution. But the field
aText.menu is always null. Is there a getDefaultMenu()?
2. If I try to build a new menu with the default items, i don't find
aText.undo() or something like that. There is aText.cut(), aText.paste(),
aText.copy(), but no undo()!! Am I right or tired?
Thanks a lot for your help
Didier
|
|
|
|
Powered by
FUDForum. Page generated in 0.03093 seconds