Search in sources :

Example 1 with DelegatingDropAdapter

use of org.eclipse.jface.util.DelegatingDropAdapter in project tdi-studio-se by Talend.

the class JobHierarchyViewPart method addDropAdapters.

private void addDropAdapters(AbstractTreeViewer viewer) {
    Transfer[] transfers = new Transfer[] { LocalSelectionTransfer.getInstance() };
    int ops = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK | DND.DROP_DEFAULT;
    DelegatingDropAdapter delegatingDropAdapter = new DelegatingDropAdapter();
    delegatingDropAdapter.addDropTargetListener(new JobHierarchyTransferDropAdapter(this));
    viewer.addDropSupport(ops, transfers, delegatingDropAdapter);
}
Also used : DelegatingDropAdapter(org.eclipse.jface.util.DelegatingDropAdapter) Transfer(org.eclipse.swt.dnd.Transfer) LocalSelectionTransfer(org.eclipse.ui.views.navigator.LocalSelectionTransfer) Point(org.eclipse.swt.graphics.Point)

Aggregations

DelegatingDropAdapter (org.eclipse.jface.util.DelegatingDropAdapter)1 Transfer (org.eclipse.swt.dnd.Transfer)1 Point (org.eclipse.swt.graphics.Point)1 LocalSelectionTransfer (org.eclipse.ui.views.navigator.LocalSelectionTransfer)1