Package org.eclipse.swt.dnd

Examples of org.eclipse.swt.dnd.DragSource.dispose()


    StyledText st= viewer.getTextWidget();
    dndService.removeMergedDropTarget(st);

    DragSource dragSource= (DragSource)st.getData(DND.DRAG_SOURCE_KEY);
    if (dragSource != null) {
      dragSource.dispose();
      st.setData(DND.DRAG_SOURCE_KEY, null);
    }

    fIsTextDragAndDropInstalled= false;
  }
View Full Code Here


    if(st != null) {     
      dndService.removeMergedDropTarget(st);
     
      DragSource dragSource= (DragSource)st.getData(DND.DRAG_SOURCE_KEY);
      if (dragSource != null) {
        dragSource.dispose();
        st.setData(DND.DRAG_SOURCE_KEY, null);
      }
    }
    //Remove the listener
    if(SelectionCursorListener!=null){     
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.