Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Invisible node in the diagram editor
Invisible node in the diagram editor [message #167304] Tue, 08 January 2008 11:48 Go to next message
Eclipse UserFriend
Originally posted by: guo.mci.sdu.dk

Hi,

Is it possible to make a node in the diagram editor invisible?

I want to use an action to toggle the node between visible and invisible.

regards,
Yu Guo
Re: Invisible node in the diagram editor [message #167328 is a reply to message #167304] Tue, 08 January 2008 12:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: trommas.yahoo.com

Yu Guo wrote:
> Hi,
>
> Is it possible to make a node in the diagram editor invisible?
>
> I want to use an action to toggle the node between visible and invisible.
>

There is isVisible() method for all editParts. Another option (that I
use) is playing around with create and destroy commands.


HTH,

Tomas Zijdemans
Re: Invisible node in the diagram editor [message #167649 is a reply to message #167304] Thu, 10 January 2008 16:44 Go to previous message
Alexander Shatalin is currently offline Alexander ShatalinFriend
Messages: 2928
Registered: July 2009
Senior Member
Hello Yu,

Try calling Node.setVisible(false) for corresponding notation model element.

-----------------
Alex Shatalin
Previous Topic:displaying children referenced but not contained by parent
Next Topic:Model Explorer (navigator) in GMF
Goto Forum:
  


Current Time: Tue Apr 16 07:17:00 GMT 2024

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

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

Back to the top