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 13:57
Rob  is currently offline Rob Friend
Messages: 3
Registered: July 2009
Junior Member

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,

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

Current Time: Mon Feb 27 23:43:22 GMT 2017

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

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