Skip to main content



      Home
Home » Eclipse Projects » Sirius » Delete multiple elements that are selected by using Java Service
Delete multiple elements that are selected by using Java Service [message #1793308] Fri, 03 August 2018 10:22 Go to next message
Eclipse UserFriend
Hello,

Assume that a user selects multiple elements in a diagram, and uses delete key/button to delete the elements. Now, I'm trying to pass the selected elements to a java service and do some stuff before deleting these elements. What I need is to pass all the selected elements. So, if I just say "service:DeleteMyElements()", it will only pass the first selected element from the list of the selected elements. Is there any way to pass all the selected elements? I know I can use "for" element, but with "for" I can only pas one of the selected elements one at a time. However, I need to pass all the elements at the same time.

Thanks,
Regards,
Parsa

[Updated on: Tue, 07 August 2018 09:12] by Moderator

Re: Delete multiple elements that are selected by using Java Service [message #1793396 is a reply to message #1793308] Tue, 07 August 2018 09:12 Go to previous messageGo to next message
Eclipse UserFriend
Any idea ?
Re: Delete multiple elements that are selected by using Java Service [message #1793524 is a reply to message #1793396] Thu, 09 August 2018 10:18 Go to previous message
Eclipse UserFriend
Hi Parsa,

When you select many elements, the tool Delete Element is called for each element to delete. You can't pass a list elements to delete.

Regards,
Previous Topic:Eclipse Oxygen with Sirius 6 and XText 2.14 - correct install?
Next Topic:edge between elements in an ordered set
Goto Forum:
  


Current Time: Wed Apr 30 13:25:09 EDT 2025

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

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

Back to the top