Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Drop on wrong target(sirius drag drop model explorer diagram)
Drop on wrong target [message #1827575] Mon, 18 May 2020 15:32 Go to next message
Matthieu Benvenuti is currently offline Matthieu BenvenutiFriend
Messages: 7
Registered: September 2019
Junior Member
Hello,

Thanks to the container drop tool defined in my odesign, I'm able to drag and drop elements from the model explorer to the diagram and execute actions in the "Begin" successfully. :D

But that is when the correct source is dropped to the correct target.

Now I'm focusing on the cases when the element is dropped to the wrong target .

Is there a way to catch this failed drop to execute some java code ?

Also, when dragging, there are several filters that seems to be processed :
- from the container list in "Container Drop"
- from the definition itself of the diagram elements (Nodes, Containers...)

Is there any Sirius helper that could provide the targets compatible with the source element ?

Thank you in advance.
Re: Drop on wrong target [message #1827897 is a reply to message #1827575] Tue, 26 May 2020 12:55 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,

Quote:
Is there a way to catch this failed drop to execute some java code ?


There is no fallback when you drop in the wrong target. You can potentially define a "Container Drop Tool" with the wrong targets as "Containers".

Quote:
Also, when dragging, there are several filters that seems to be processed :
- from the container list in "Container Drop"
- from the definition itself of the diagram elements (Nodes, Containers...)


For creation tool, there is a notion of "Extra Mappings". Unfortunatelly, this does not exist for "Container Drop Tool".

Quote:
Is there any Sirius helper that could provide the targets compatible with the source element ?

This check is done in Sirius somewhere in the code. But I'm not sure than an helper exist.

Regards,


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Rulers and Grids scaling on Windows
Next Topic:Scaling and Fonts on Windows vs Mac
Goto Forum:
  


Current Time: Fri Apr 19 21:34:01 GMT 2024

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

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

Back to the top