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,DragSourceListener,SWTEventListener
Source for a script D&D event.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic final voidaddDragSupport(TreeViewer treeViewer) Does everything to add drag support to a given tree.final voiddragSetData(DragSourceEvent event) Methods inherited from class org.eclipse.swt.dnd.TreeDragSourceEffect
dragFinished, dragStartMethods inherited from class org.eclipse.swt.dnd.DragSourceEffect
getControl
-
Constructor Details
-
ScriptDragSource
Constructor. Gets its macros from a tree selection.- Parameters:
tree- tree to read from
-
-
Method Details
-
addDragSupport
Does everything to add drag support to a given tree.- Parameters:
treeViewer- tree to add drag support to
-
dragSetData
- Specified by:
dragSetDatain interfaceDragSourceListener- Overrides:
dragSetDatain classDragSourceAdapter
-