You are on the right track by implementing IDropActionDelegate :
class DropActionDelegate implements IDropActionDelegate { @Override public boolean run(Object source, Object target) { String transferredData (String) target;
The purpose of the org.eclipse.ui.dropActions extension point is to provide transition behavior for views that you did not define yourself (for example, Project Explorer).
You register the action action extension as follows:
<extension point="org.eclipse.ui.dropActions"> <action id="my_drop_action" class="com.xyz.DropActionDelegate"> </action> </extension>
Remember to add an adequate listener to your editor in your plugin code:
class DragListener implements DragSourceListener { @Override public void dragStart(DragSourceEvent event) { } @Override public void dragSetData(DragSourceEvent event) { PluginTransferData p; p = new PluginTransferData( "my_drop_action",
source share