Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to select all layers at once
How to select all layers at once [message #1802203] Mon, 04 February 2019 07:28 Go to next message
Prajna VGFriend
Messages: 50
Registered: July 2018
Member
Hi,

In diagram I have 5-6 layers. We can see the required layers once we checked in tabbar. I want to add one more option in that layers list called Select all so that we can select all the layers at once. Can I do that by adding service / external java action. Or is there any extension for adding one layer for those list.

I added one layer with name 'Select all'. But for layer we can not add any service method and java action. Can anyone help me on this!!



[Updated on: Mon, 04 February 2019 07:28]

Report message to a moderator

Re: How to select all layers at once [message #1802216 is a reply to message #1802203] Mon, 04 February 2019 12:26 Go to previous messageGo to next message
Laurent Fasani is currently offline Laurent FasaniFriend
Messages: 159
Registered: October 2014
Senior Member
Hello

It looks like an enhancement. We could effectively imagine something like check butons in the drop down button list with a special Select all check button.

But for your case adding a fake layer just to have a new entry in the menu list does not seem a good idea.
You could instead add a "Popup Menu" under the "Tool Section" in the odesign in order to have a "Select All" action available in contextual menu in your diagram.

Then you can call a java service to activate all layers.
The pointers below will be helpful to get all layers and activate them
org.eclipse.sirius.diagram.business.internal.metamodel.helper.LayerHelper.getAllLayers(DiagramDescription)
org.eclipse.sirius.diagram.tools.api.command.ChangeLayerActivationCommand

regards
Laurent


Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: How to select all layers at once [message #1802242 is a reply to message #1802216] Tue, 05 February 2019 05:19 Go to previous message
Prajna VGFriend
Messages: 50
Registered: July 2018
Member
It works!! Thank you Laurent

With regards,

Prajna
Previous Topic:"diagram" variable is gone
Next Topic:Only one node creation and deletion detection
Goto Forum:
  


Current Time: Tue Oct 22 06:14:57 GMT 2019

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

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

Back to the top