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:Closing all opened editors at the time of Eclipse launch
Next Topic:How can I wrap TableViewer cells text?
Goto Forum:

Current Time: Fri Mar 23 13:24:50 GMT 2018

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

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