Customize the Editor Context Menu? [message #153343] |
Wed, 03 October 2007 17:40  |
Eclipse User |
|
|
|
Originally posted by: sjames_iberis.hotmail.com
I would like to implement a custom context menu and have the generated
editor use it, rather than standard one.
In particular, I want to make the options available on the menu sensitive
to the content of elements of the semantic model associated with selected
diagram nodes.
For example, I have a node that represents a process which can be in a
started or stopped state. I would like the menu to offer a Start option
only if it is stopped and vice versa.
Can anyone confirm whether it is possible to customize the editor's
context menu to this extent?
I am using Eclipse v3.3.
Thanks.
Simon
|
|
|
|
Re: Customize the Editor Context Menu? [message #154862 is a reply to message #153343] |
Thu, 11 October 2007 09:44  |
Eclipse User |
|
|
|
Originally posted by: benholtz.gmx.de
Can you make a tutorial? I want to customize the context menu, too. The GMF
tutorial was a little bit to hard for me.
Thx, Benjamin
"Simon James" <sjames_iberis@hotmail.com> wrote in message
news:6cdd2553e9ff4018fe26793089ae9a4d$1@www.eclipse.org...
>I would like to implement a custom context menu and have the generated
>editor use it, rather than standard one.
> In particular, I want to make the options available on the menu sensitive
> to the content of elements of the semantic model associated with selected
> diagram nodes.
> For example, I have a node that represents a process which can be in a
> started or stopped state. I would like the menu to offer a Start option
> only if it is stopped and vice versa.
>
> Can anyone confirm whether it is possible to customize the editor's
> context menu to this extent?
>
> I am using Eclipse v3.3.
>
> Thanks.
>
> Simon
>
|
|
|
Powered by
FUDForum. Page generated in 0.26321 seconds