Drop on wrong target [message #1827575] |
Mon, 18 May 2020 11:32  |
Eclipse User |
|
|
|
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 08:55  |
Eclipse User |
|
|
|
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,
|
|
|
Powered by
FUDForum. Page generated in 0.26697 seconds