Skip to main content



      Home
Home » Eclipse Projects » Sirius » Hide node or container by default(Hide node or container by default)
Hide node or container by default [message #1771763] Wed, 30 August 2017 04:52 Go to next message
Eclipse UserFriend
Hello,

Is it possible to hide by default a node or a container at its creation ?
I know that it is possible to hide a label by default in the label properties panel of a container gradiant style for example but I don't find how to hide the entire container or node diagram element.

Thank you,

Mathieu
Re: Hide node or container by default [message #1771883 is a reply to message #1771763] Thu, 31 August 2017 11:36 Go to previous message
Eclipse UserFriend
Hi

Yes, it is possible.
You can call java code during your tool execution and then use the API to hide your element [1]
To call java code, simply add a ChangeContext operation in your tool and call you java code with aql.[2]

Note that the java code, called during a tool execution, is already executed in a EMF transaction. You don't necessarily need to add a Command in the CommandStack of the TransactionnalEditingDomain.

regards
Laurent

[1]org.eclipse.sirius.diagram.tools.api.command.view.HideDDiagramElement
[2]https://www.eclipse.org/sirius/doc/specifier/general/Writing_Queries.html#aql
Previous Topic:How to config Select Wizard for show a tree?
Next Topic:Memory leaks in Sirius?
Goto Forum:
  


Current Time: Wed Jul 16 20:11:32 EDT 2025

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

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

Back to the top