Examples of CFEDragDropListener


Examples of org.cfeclipse.cfml.editors.dnd.CFEDragDropListener

    // TODO Auto-generated method stub
    StyledText tw = getSourceViewer().getTextWidget();
    int operations = DND.DROP_MOVE | DND.DROP_COPY | DND.DROP_DEFAULT;
    Transfer[] transfers = new Transfer[] { LocalSelectionTransfer.getTransfer(),TextTransfer.getInstance(),ResourceTransfer.getInstance(),FileTransfer.getInstance() };
    //installTextDragAndDrop(getSourceViewer());
    CFEDragDropListener ddListener = new CFEDragDropListener(this,
        (ProjectionViewer) this.getSourceViewer(), SelectionCursorListener);
    IDragAndDropService dtSvc = (IDragAndDropService) getSite().getService(IDragAndDropService.class);
    dtSvc.addMergedDropTarget(tw, operations, transfers, ddListener);
    final DragSource source= new DragSource(tw, DND.DROP_COPY | DND.DROP_MOVE);
    source.setTransfer(new Transfer[] {TextTransfer.getInstance()});
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.