Skip to main content

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: Thu Sep 24 09:45:17 GMT 2020

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

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

Back to the top