How to select all layers at once [message #1802203] |
Mon, 04 February 2019 07:28  |
Prajna VG Messages: 54 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   |
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.01786 seconds