Package org.eclipse.swt.dnd

Examples of org.eclipse.swt.dnd.DropTarget.addDropListener()


        DropTarget target = new DropTarget( view.getViewer().getControl(), DND.DROP_COPY );
        //we only support file dropping on the viewer
        Transfer[] types = new Transfer[]
            { FileTransfer.getInstance() };
        target.setTransfer( types );
        target.addDropListener( new DropTargetAdapter()
        {
            /**
             * {@inheritDoc}
             */
            public void dragEnter( DropTargetEvent event )
View Full Code Here


      }
    });

    DropTarget dropTarget = new DropTarget(treeViewer.getControl(), DND.DROP_DEFAULT | DND.DROP_COPY);
    dropTarget.setTransfer(new Transfer[]{FileTransfer.getInstance()});
    dropTarget.addDropListener(this);
   
    addActions();
   
    getJexManager().setViewer(this);
  }
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.