Skip to main content



      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 02:28 Go to next message
Eclipse UserFriend
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 02:28] by Moderator

Re: How to select all layers at once [message #1802216 is a reply to message #1802203] Mon, 04 February 2019 07:26 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to select all layers at once [message #1802242 is a reply to message #1802216] Tue, 05 February 2019 00:19 Go to previous message
Eclipse UserFriend
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: Mon Jul 07 10:10:15 EDT 2025

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

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

Back to the top