Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Context popup menu
Context popup menu [message #191616] Mon, 09 June 2008 09:25 Go to next message
Markus Kopf is currently offline Markus KopfFriend
Messages: 6
Registered: July 2009
Location: Karlsruhe
Junior Member
Hi together*,

I'm new in GMF and have the following problem. Imagine u have nodes in a
diagram and inside the nodes are again nodes. Now when I click in a node the
new diagram is redrawing and everything works fine per default. In my use
case i would add this "zoom-in"-Action add to the context menu when i select
a node in the diagram.

Is there anybody who can help me?

Thanks and regards,
Markus
Re: Context popup menu [message #191889 is a reply to message #191616] Tue, 10 June 2008 12:39 Go to previous message
Markus Kopf is currently offline Markus KopfFriend
Messages: 6
Registered: July 2009
Location: Karlsruhe
Junior Member
Hi all,

I found out a solution.

- First add the action for the context menu of the diagram

point="org.eclipse.ui.popupMenus">

- In my case implements the EditPolicy the IViewACtionDelegate and call
inside the run method the getOpenCommand(Request pRequest) method.

- Execut on the obtained command obejct execute



If there are other proposals please let me know.



Kind regards,

Markus



"Markus Kopf" <markus.kopf@itemis.de> schrieb im Newsbeitrag
news:g2isup$qq6$1@build.eclipse.org...
> Hi together*,
>
> I'm new in GMF and have the following problem. Imagine u have nodes in a
> diagram and inside the nodes are again nodes. Now when I click in a node
> the new diagram is redrawing and everything works fine per default. In my
> use case i would add this "zoom-in"-Action add to the context menu when i
> select a node in the diagram.
>
> Is there anybody who can help me?
>
> Thanks and regards,
> Markus
>
Previous Topic:Open a GMF Editor inside a SWT Composite
Next Topic:[Announce] GMF 2.1.0 I200806100656 is available
Goto Forum:
  


Current Time: Fri Apr 26 17:07:09 GMT 2024

Powered by FUDForum. Page generated in 0.02824 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top