Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Drag and Drop from View to Editor
Drag and Drop from View to Editor [message #419634] Thu, 29 May 2008 23:45 Go to next message
Bernd Mühlböck is currently offline Bernd MühlböckFriend
Messages: 46
Registered: July 2009
Member
I want to be able to drag items from a table view into the emf editor in
order to create new items.
I have created a special Transfer as well as a DragSourceListener and
added it to the view, but where can I add the DropTargetListener to the
editor?

Do I have to edit or replace the EditingDomainViewerDropAdapter?

Thanks,
Bernd
Re: Drag and Drop from View to Editor [message #419635 is a reply to message #419634] Fri, 30 May 2008 00:56 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Bernd,

It's such an open ended question and it's been so many years since I
worked on the details of drag and drop. The best I can suggest is to
look carefully at how drag and drop within the editor works and to learn
from that... Likely you'd need to extend the
EditingDomainViewerDropAdatper to handle your type of transfer. I know
from past experience that drag and drop is hard to debug because hitting
a breakpoint kills the interaction, so often it's best to add trace
statements...


Bernd Mühlböck wrote:
> I want to be able to drag items from a table view into the emf editor
> in order to create new items.
> I have created a special Transfer as well as a DragSourceListener and
> added it to the view, but where can I add the DropTargetListener to
> the editor?
>
> Do I have to edit or replace the EditingDomainViewerDropAdapter?
>
> Thanks,
> Bernd


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Why does ChangeRecorder record backwards?
Next Topic:Model persistence related query.
Goto Forum:
  


Current Time: Fri Apr 26 19:59:46 GMT 2024

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

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

Back to the top