Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Rob  is currently offline Rob
Messages: 3
Registered: July 2009
Junior Member
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: Thu Jul 24 16:12:37 EDT 2014

Powered by FUDForum. Page generated in 0.01987 seconds