Skip to main content



      Home
Home » Modeling » GMF (Graphical Modeling Framework) » Hiding elements
Hiding elements [message #165877] Wed, 19 December 2007 05: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 08:31 Go to previous message
Eclipse UserFriend
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: Wed May 07 15:35:01 EDT 2025

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

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

Back to the top