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
    Constructor
    Description
    ScriptDragSource(org.eclipse.jface.viewers.TreeViewer tree)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    static 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

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 interface org.eclipse.swt.dnd.DragSourceListener
      Overrides:
      dragSetData in class org.eclipse.swt.dnd.DragSourceAdapter