Search in sources :

Example 1 with NavigatorDragAdapter

use of org.eclipse.ui.views.navigator.NavigatorDragAdapter in project eclipse.platform.text by eclipse.

the class FileSearchPage method addDragAdapters.

private void addDragAdapters(StructuredViewer viewer) {
    Transfer[] transfers = new Transfer[] { ResourceTransfer.getInstance() };
    int ops = DND.DROP_COPY | DND.DROP_LINK;
    viewer.addDragSupport(ops, transfers, new NavigatorDragAdapter(viewer));
}
Also used : NavigatorDragAdapter(org.eclipse.ui.views.navigator.NavigatorDragAdapter) ResourceTransfer(org.eclipse.ui.part.ResourceTransfer) Transfer(org.eclipse.swt.dnd.Transfer)

Aggregations

Transfer (org.eclipse.swt.dnd.Transfer)1 ResourceTransfer (org.eclipse.ui.part.ResourceTransfer)1 NavigatorDragAdapter (org.eclipse.ui.views.navigator.NavigatorDragAdapter)1