Package org.eclipse.ease.ui.scripts.ui
Class ScriptDragSource
java.lang.Object
org.eclipse.swt.dnd.DragSourceAdapter
org.eclipse.swt.dnd.DragSourceEffect
org.eclipse.swt.dnd.TreeDragSourceEffect
org.eclipse.ease.ui.scripts.ui.ScriptDragSource
- All Implemented Interfaces:
EventListener
,org.eclipse.swt.dnd.DragSourceListener
,org.eclipse.swt.internal.SWTEventListener
public class ScriptDragSource
extends org.eclipse.swt.dnd.TreeDragSourceEffect
Source for a script D&D event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final void
addDragSupport
(org.eclipse.jface.viewers.TreeViewer treeViewer) Does everything to add drag support to a given tree.final void
dragSetData
(org.eclipse.swt.dnd.DragSourceEvent event) Methods inherited from class org.eclipse.swt.dnd.TreeDragSourceEffect
dragFinished, dragStart
Methods inherited from class org.eclipse.swt.dnd.DragSourceEffect
getControl
-
Constructor Details
-
ScriptDragSource
public ScriptDragSource(org.eclipse.jface.viewers.TreeViewer tree) Constructor. Gets its macros from a tree selection.- Parameters:
tree
- tree to read from
-
-
Method Details
-
addDragSupport
public static final void addDragSupport(org.eclipse.jface.viewers.TreeViewer treeViewer) Does everything to add drag support to a given tree.- Parameters:
treeViewer
- tree to add drag support to
-
dragSetData
public final void dragSetData(org.eclipse.swt.dnd.DragSourceEvent event) - Specified by:
dragSetData
in interfaceorg.eclipse.swt.dnd.DragSourceListener
- Overrides:
dragSetData
in classorg.eclipse.swt.dnd.DragSourceAdapter
-