|
|
Re: Hide Compartment programatically [message #483893 is a reply to message #483823] |
Thu, 03 September 2009 14:09 |
Artur Kronenberg Messages: 159 Registered: August 2009 |
Senior Member |
|
|
Hello Alex,
thank you for your reply. Unfortunately when I call
AllCompartmentsAction.createHideAllCompartmentsAction() and run that
action, I don't get the result. Actually, nothing visual is happening at
all. Plus the method seems to be discuraged.
However, I debugged the notification in my compartment and found that one
feature is changed while hiding the compartment.
So, if I call
MyCompartment.setStructuralFeatureValue(NotationPackage.Lite rals.VIEW__VISIBLE,
false); on the editpart I want to hide the compartment, it gets hidden. If
I iterate over all my editparts I can hide all the compartments.
I don't know if that is the right approach. I'd rather use the action, but
somehow it doesn't work for me.
Alex Shatalin wrote:
> Hello Artur,
> See
org.eclipse.gmf.runtime.diagram.ui.actions.internal.AllCompa rtmentsAction
> implementation.
> -----------------
> Alex Shatalin
|
|
|
Powered by
FUDForum. Page generated in 0.03706 seconds