|
Re: Adding a new context menu (not items to an existing) [message #463862 is a reply to message #431847] |
Sat, 17 February 2007 20:48 |
Eclipse User |
|
|
|
Originally posted by: gunislj.yahoo.com
I have the same question, please :(
Anybody knows?. I have example that hooks context menu trough the code (
hookContextMenu() ), which is bad. I want to create complete context menu
(and actions trough plugin.xml) and not trough code. HOW?
Thanks in advance, Lazar
"Nathan Sweet" <misc@n4te.com> wrote in message
news:d700e1$n1v$1@news.eclipse.org...
> This is a simple question, but I haven't found anything at all about it. I
> know
> how to add items to existing RCP menus, but how should I create my own
> context
> menus in my 3.1 RCP app? These menus will be used for my controls.
>
> For example, I have a TableViewer. Should I go down to SWT and use
> viewer.getTable().setMenu(...)? Is there a JFace way to do it? Is there an
> RCP
> way to do it, maybe that will all me to use extensions to add extra items?
> I
> would like to choose the most powerful approach and do it right from the
> beginning.
>
> Thanks!
>
> -Nate
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02913 seconds