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

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,

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: 174
Registered: October 2014
Senior Member

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.



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

Current Time: Wed Jan 27 11:39:07 GMT 2021

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

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

Back to the top