Method Summary |
|
public static void | addDragDropSupport(StructuredViewer viewer, IDropTargetProvider defaultTarget) Adds both drag and drop support to the StructuredViewer. |
public static void | addDragDropSupport(StructuredViewer viewer, IDropTargetProvider defaultTarget, boolean showDropFeedback, boolean expandTree) Adds both drag and drop support to the StructuredViewer. |
public static void | addDragDropSupport(Control control, IDropTargetProvider destination, ISelectionProvider source) Adds both drag and drop support to the StructuredViewer. |
public static DragSourceDescriptor | addDragSupport(Control control, ISelectionProvider provider) Adds drag support to the StructuredViewer.
For this to work the destination object must have a dropAction extension
defined for it.
Parameters: control - the viewer to have drag support added to it. Parameters: destination - the destination that determines what actions will takeplace when a drag event occurs. |
public static UDIGDropTargetListener | addDropSupport(StructuredViewer viewer, IDropTargetProvider defaultTarget) Adds drop support to the StructuredViewer. |
public static UDIGDropTargetListener | addDropSupport(StructuredViewer viewer, IDropTargetProvider defaultTarget, boolean showDropFeedback, boolean scrollExpandEnabled) Adds drop support to the StructuredViewer. |
public static DropTargetDescriptor | addDropSupport(Control control, IDropTargetProvider destination) Adds drop support to the StructuredViewer.
For this to work the destination object must have a dropAction extension
defined for it.
Parameters: control - the viewer to have drop support added to it. Parameters: destination - the destination that determines what actions will takeplace when a drop event occurs. |
public static UDIGControlDropListener | getEditorDropListener() Creates a drop listener that will send the drop event to the
currently active editor. |
public static Set<Transfer> | getTransfers() Returns the transfers that are available with the current
udig configuration. |
public static void | registerUDigDND(IWorkbenchWindowConfigurer configurer) Registers the DND Support needed by uDig. |