Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow to DND from one editor to another
https://www.eclipse.org/forums/index.php/mv/msg/67236/211053/#msg_211053
Originally posted by: harsh.ti.com
All,
I have a requirement to DND objects from an editor in one eclipse.exe to
another. Both of the editors are GEF editors. Any help would be greatly
appreciated.
Thank you,
Harsh]]>2006-03-08T02:57:27-00:00Re: How to DND from one editor to another
https://www.eclipse.org/forums/index.php/mv/msg/67236/211082/#msg_211082
Originally posted by: java.freshman.cx.gmail.com
Hi,
I think your requirement equals to drag from a GEF editor and drop to
another.
What you need to do is add DragSourceListener to your drag source editor
and add DropTargetListener including CreationFactory in it to target
editor.]]>2006-03-08T03:10:53-00:00Re: How to DND from one editor to another
https://www.eclipse.org/forums/index.php/mv/msg/67236/211171/#msg_211171
Originally posted by: sunil_kamath.nohotspammail.com
Shawn Chen <java.freshman.cx@gmail.com> wrote:
> Hi,
>
> I think your requirement equals to drag from a GEF editor and drop to
> another.
> What you need to do is add DragSourceListener to your drag source
> editor and add DropTargetListener including CreationFactory in it to
> target editor.
But how is he going to switch from GEF drag to native drag?
--
Sunil]]>2006-03-08T19:57:30-00:00Re: How to DND from one editor to another
https://www.eclipse.org/forums/index.php/mv/msg/67236/211252/#msg_211252
Originally posted by: harsh.ti.com
The other issue is when the drag starts in one editor, since it's also the
drop target listener, it gets invoked. Somehow, I have to ignore this
because regular moving of the objects within the editor get disabled.
Has anybody else implemented this? If I am not clear, please let me know.
Regards,
Harsh]]>2006-03-09T04:08:12-00:00Re: How to DND from one editor to another
https://www.eclipse.org/forums/index.php/mv/msg/67236/213265/#msg_213265
> The other issue is when the drag starts in one editor, since it's also
> the drop target listener, it gets invoked. Somehow, I have to ignore
> this because regular moving of the objects within the editor get disabled.
I've seen this same issue = adding native DnD to a GEF editor disables
normal GEF movement. Has anyone figured this out?