Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hiding elements
Hiding elements [message #165877] Wed, 19 December 2007 10:59 Go to next message
Eclipse UserFriend
Originally posted by: msieurbush.hotmail.com

Hello,

I'd like to know how to programatically hide/show subelements of a node by
double-clicking on it. I managed to get the Double-click event and, at the
moment, I use the setVisible method but when I re-open the diagram the
subelements still appears. Can somebody tell me which is the right way to
hide an element?

Thank you,

David
Re: Hiding elements [message #165915 is a reply to message #165877] Wed, 19 December 2007 13:31 Go to previous message
Boris Blajer is currently offline Boris BlajerFriend
Messages: 217
Registered: July 2009
Senior Member
Hi David,

org.eclipse.gmf.runtime.notation.View#setVisible() should be used to
persistently set visibility of the element. As always, this method
should be called from within an open transaction (see
AbstractTransactionalCommand for details).

Best regards,
Boris


David wrote:
> Hello,
>
> I'd like to know how to programatically hide/show subelements of a node
> by double-clicking on it. I managed to get the Double-click event and,
> at the moment, I use the setVisible method but when I re-open the
> diagram the subelements still appears. Can somebody tell me which is the
> right way to hide an element?
>
> Thank you,
>
> David
>
Previous Topic:Properties tabb
Next Topic:List with set and get
Goto Forum:
  


Current Time: Mon Dec 30 16:25:16 GMT 2024

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

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

Back to the top