Package org.eclipse.swt.dnd

Examples of org.eclipse.swt.dnd.DropTargetListener


    viewer.setInput(null);
    document.addChangeListener(contentProvider);

    Transfer[] typesDropSupport = new Transfer[] { FeatureStructureTransfer.getInstance() };

    viewer.addDropSupport(DND.DROP_COPY, typesDropSupport, new DropTargetListener() {

      public void dragEnter(DropTargetEvent event) {
        // only the FeatureStructureTransfer is supported
        // set currentTransferType to FeatureStructureTransfer, if possible
        for (TransferData transferData : event.dataTypes) {
View Full Code Here


    viewer.setInput(null);
    document.addChangeListener(contentProvider);

    Transfer[] typesDropSupport = new Transfer[] { FeatureStructureTransfer.getInstance() };

    viewer.addDropSupport(DND.DROP_COPY, typesDropSupport, new DropTargetListener() {

      public void dragEnter(DropTargetEvent event) {
        // only the FeatureStructureTransfer is supported
        // set currentTransferType to FeatureStructureTransfer, if possible
        for (TransferData transferData : event.dataTypes) {
View Full Code Here

        final FileTransfer fileTransfer = FileTransfer.getInstance();
        final URLTransfer urlTransfer = URLTransfer.getInstance();
        final UDigByteAndLocalTransfer omsboxTransfer = UDigByteAndLocalTransfer.getInstance();
        Transfer[] types = new Transfer[]{fileTransfer, textTransfer, urlTransfer, omsboxTransfer};
        target.setTransfer(types);
        target.addDropListener(new DropTargetListener(){
            @SuppressWarnings("nls")
            public void drop( DropTargetEvent event ) {
                if (textTransfer.isSupportedType(event.currentDataType)) {
                    String text = (String) event.data;
                    System.out.println(text);
View Full Code Here

        final FileTransfer fileTransfer = FileTransfer.getInstance();
        final URLTransfer urlTransfer = URLTransfer.getInstance();
        final UDigByteAndLocalTransfer omsboxTransfer = UDigByteAndLocalTransfer.getInstance();
        Transfer[] types = new Transfer[]{fileTransfer, textTransfer, urlTransfer, omsboxTransfer};
        target.setTransfer(types);
        target.addDropListener(new DropTargetListener(){
            public void drop( DropTargetEvent event ) {
                if (textTransfer.isSupportedType(event.currentDataType)) {
                    String text = (String) event.data;
                    System.out.println(text);
                }
View Full Code Here

        }
      }
    });
   
    // Install drag target
    DropTargetListener dropTargetListener= new DropTargetAdapter() {
     
      private Point fSelection;
     
      public void dragEnter(DropTargetEvent event) {
        fTextDragAndDropToken= null;
View Full Code Here

      public void widgetDefaultSelected(SelectionEvent e) {
       
      }
    });
   
    DropTargetListener dtl = new DropTargetListener() {

      @Override
      public void dropAccept(DropTargetEvent event) {
      }
View Full Code Here

      }
    });
   
   
   
    DropTargetListener dtl = new DropTargetListener() {

      @Override
      public void dropAccept(DropTargetEvent event) {
      }
View Full Code Here

   
   
   
   
   
    DropTargetListener dtl = new DropTargetListener() {

      @Override
      public void dropAccept(DropTargetEvent event) {
      }
View Full Code Here

      public void widgetDefaultSelected(SelectionEvent e) {
       
      }
    });
   
    DropTargetListener dtl = new DropTargetListener() {

      @Override
      public void dropAccept(DropTargetEvent event) {
      }
View Full Code Here

    viewer.setInput(null);
    document.addChangeListener(contentProvider);

    Transfer[] typesDropSupport = new Transfer[] { FeatureStructureTransfer.getInstance() };

    viewer.addDropSupport(DND.DROP_COPY, typesDropSupport, new DropTargetListener() {

      public void dragEnter(DropTargetEvent event) {
        // only the FeatureStructureTransfer is supported
        // set currentTransferType to FeatureStructureTransfer, if possible
        for (TransferData transferData : event.dataTypes) {
View Full Code Here

TOP

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

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.