Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Double click on a node show/hide another node
Double click on a node show/hide another node [message #158585] Wed, 07 November 2007 05:06 Go to next message
Eclipse UserFriend
Hi,
I have a problem with GMF.
When I double-click on a node with the mouse I need to show/hide another
node!
Any ideas?
Thanks :)
Re: Double click on a node show/hide another node [message #158728 is a reply to message #158585] Wed, 07 November 2007 12:36 Go to previous message
Eclipse UserFriend
Originally posted by: cfk1.gmx.de

Hi Giordano,

take a look at this site:
http://wiki.eclipse.org/index.php/GMF_Newsgroup_Q&A
--> question number 7


You have to install an OpenEditPolicy on your desired EditPart.
When you double-click on this EditPart the getOpenCommand method from
OpenEditPolicy is called. There you can put your code to show/hide
annother node.


Greetings
Carsten

Giordano schrieb:
> Hi,
> I have a problem with GMF.
> When I double-click on a node with the mouse I need to show/hide another
> node!
> Any ideas?
> Thanks :)
>
Previous Topic:Difficulties loading resources
Next Topic:how to control width of compartments
Goto Forum:
  


Current Time: Sun Jul 27 08:57:18 EDT 2025

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

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

Back to the top