|
Re: Drag and Drop from View to Editor [message #419635 is a reply to message #419634] |
Fri, 30 May 2008 00:56 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03215 seconds