Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to DND from one editor to another
How to DND from one editor to another [message #211053] Wed, 08 March 2006 02:57 Go to next message
Eclipse UserFriend
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
Re: How to DND from one editor to another [message #211082 is a reply to message #211053] Wed, 08 March 2006 03:10 Go to previous messageGo to next message
Eclipse UserFriend
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.
Re: How to DND from one editor to another [message #211171 is a reply to message #211082] Wed, 08 March 2006 19:57 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to DND from one editor to another [message #211252 is a reply to message #211171] Thu, 09 March 2006 04:08 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: How to DND from one editor to another [message #213265 is a reply to message #211252] Tue, 04 April 2006 14:01 Go to previous message
J Aaron Farr is currently offline J Aaron FarrFriend
Messages: 18
Registered: July 2009
Junior Member
Harsh wrote:
> 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?

Aaron
Previous Topic:Grid line Pattern
Next Topic:How to create and move bendpoints when I am using ManhattanConnectionRouter
Goto Forum:
  


Current Time: Sun Nov 27 15:57:34 GMT 2022

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

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

Back to the top