how to disable the Grammar guidance mechanism in GMF deveoped editors [message #196013] |
Mon, 07 July 2008 23:28  |
Eclipse User |
|
|
|
Originally posted by: tyhoho.gmail.com
Hi,everyone:
I draw two elements (a1 and a2) to the diagram, then I want to draw a
connection from a1 to a2. But when I release the mouse button (not
reaching a2 yet), a context menu appeared, there are two sub-menus in the
context menu, they are "create **connection to New Element ??" and "create
**connection to Existing Element". I guess that's the grammar guidance
mechanism of GMF. But how to disable this function, I don't want that
context menu.
Thanks in advance.
Tina
|
|
|
|
Re: how to disable the Grammar guidance mechanism in GMF deveoped editors [message #196720 is a reply to message #196013] |
Fri, 11 July 2008 11:29  |
Eclipse User |
|
|
|
Tina <tyhoho@gmail.com> ha scritto:
> Hi,everyone:
> I draw two elements (a1 and a2) to the diagram, then I want to draw a
> connection from a1 to a2. But when I release the mouse button (not
> reaching a2 yet), a context menu appeared, there are two sub-menus in the
> context menu, they are "create **connection to New Element ??" and "create
> **connection to Existing Element". I guess that's the grammar guidance
> mechanism of GMF. But how to disable this function, I don't want that
> context menu.
AFAIK, you should manually modify the <editorName>ModelingAssistantProvider
class in your diagram generated code.
--
The wind in my heart
The dust in my head
|
|
|
Powered by
FUDForum. Page generated in 0.03569 seconds