Examples of DragSourceListener


Examples of org.eclipse.swt.dnd.DragSourceListener

  private void addDragSupport(final ScrolledForm form) {
    int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_LINK;
    Transfer[] transferTypes = { TextTransfer.getInstance() };
    form.getForm().addTitleDragSupport(operations, transferTypes,
        new DragSourceListener() {
          public void dragFinished(DragSourceEvent event) {
          }

          public void dragSetData(DragSourceEvent event) {
            event.data = form.getForm().getText();
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.