Package org.eclipse.swt.dnd

Examples of org.eclipse.swt.dnd.DragSourceEffect


  private DragSource addDragSupport(Control control, int operations,
      Transfer[] transferTypes, DragSourceListener listener) {
    DragSource source = new DragSource(control, operations);
    source.setTransfer(transferTypes);
    source.addDragListener(listener);
    source.setDragSourceEffect(new DragSourceEffect(control) {
      public void dragStart(DragSourceEvent event) {
        event.image = createDragEffectImage();
      }
    });
    return source;
View Full Code Here


  private DragSource addDragSupport(Control control, int operations,
      Transfer[] transferTypes, DragSourceListener listener) {
    DragSource source = new DragSource(control, operations);
    source.setTransfer(transferTypes);
    source.addDragListener(listener);
    source.setDragSourceEffect(new DragSourceEffect(control) {
      public void dragStart(DragSourceEvent event) {
        event.image = createDragEffectImage();
      }
    });
    return source;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.dnd.DragSourceEffect

Copyright © 2018 www.massapicom. 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.