Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 08:52 Go to next message
Mathieu Porcel is currently offline Mathieu PorcelFriend
Messages: 2
Registered: August 2017
Junior Member
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 15:36 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 182
Registered: October 2014
Senior Member
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


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:How to config Select Wizard for show a tree?
Next Topic:Memory leaks in Sirius?
Goto Forum:
  


Current Time: Thu Apr 25 09:56:17 GMT 2024

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

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

Back to the top