Hiding elements [message #165877] |
Wed, 19 December 2007 05:59  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02551 seconds