Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » All layers are equal (or not?)(Visibility of layer not persisted)
All layers are equal (or not?) [message #1790858] Tue, 19 June 2018 07:29 Go to next message
Wilbert Alberts is currently offline Wilbert AlbertsFriend
Messages: 172
Registered: June 2010
Senior Member
Hi,

My user noticed that the visibility of some of my layers wasn't persisted with the diagram. Furthermore, he noticed that the layers, whose visibility state was not persisted, were grouped below a separator line.

I noticed that these layers don't have any visualizations. They only contain decorations and some tools.

Is this intentional or did I trigger a bug?

I attached a (somewhat obfuscated) image of the layers menu. The lowest two layers are separated from the others as described above.

Greetings,
Wilbert.
  • Attachment: layers.png
    (Size: 13.96KB, Downloaded 15 times)

[Updated on: Tue, 19 June 2018 07:29]

Report message to a moderator

Re: All layers are equal (or not?) [message #1790922 is a reply to message #1790858] Wed, 20 June 2018 09:10 Go to previous messageGo to next message
Florian Barbin is currently offline Florian BarbinFriend
Messages: 194
Registered: August 2010
Senior Member
Hi Wilbert,

Yes, it is intentional. Transient layers (see https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#layers) are intended to display additional decorators without modifying the diagram. They can be activated or deactivated by default.

Regards,

Florian
Re: All layers are equal (or not?) [message #1790951 is a reply to message #1790922] Wed, 20 June 2018 13:46 Go to previous message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 134
Registered: October 2014
Senior Member
Hello

A layer is considered as transient if it contains only tools or decoration. If you want to persist the layer activation you may, as a workaround, add a fake node mapping without id.

We aim to add an attribute on the layer to know if it is layer or not, but I have no target release to give you at this time.

Regards
Laurent


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Cannot access the newValue in the radio button widget
Next Topic:Get DRepresentationDescriptor for DRepresentation
Goto Forum:
  


Current Time: Sun Sep 23 21:50:05 GMT 2018

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

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

Back to the top