Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Extending text editors with non-text dropsupport(Extending text editors with non-text dropsupport)
Extending text editors with non-text dropsupport [message #709095] Wed, 03 August 2011 09:57
Eclipse UserFriend
Hi,

I would like to add my own drop support in a standard text editor (JavascriptEditor).

From AbstractTextEditor.ITextEditorDropTargetListener() I see that I can use an adapter to create a ITextEditorDropTargetListener for my own transfer type.
That works ok, my listener is added as droplistener to the text widget.

The problem now is that AbstractTextEditor.installTextDragAndDrop() overwrites my listener with its own using:
dndService.addMergedDropTarget(st, DND.DROP_MOVE | DND.DROP_COPY, new Transfer[] {TextTransfer.getInstance()}, dropTargetListener);

How can I combine my drop listener with the existing drop listener for text transfers?


Thanks in advance,

Rob
Previous Topic:EXIT_RELAUNCH and eclipse.exitdata
Next Topic:Saving the state of a combo
Goto Forum:
  


Current Time: Wed Jul 02 19:50:40 EDT 2025

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

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

Back to the top