Examples of performDrop()


Examples of org.eclipse.ecf.presence.ui.dnd.IRosterViewerDropTarget.performDrop()

    public boolean performDrop(Object data) {
      boolean result = false;
      for (Iterator i = rosterPerformDrop.iterator(); i.hasNext();) {
        IRosterViewerDropTarget rdt = (IRosterViewerDropTarget) i.next();
        if (rdt.performDrop(data))
          result = true;
      }
      rosterPerformDrop.clear();
      return result;
    }
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGDropHandler.performDrop()

            if (monitor.isCanceled())
                break;
            ProcessingURLSListener listener = new ProcessingURLSListener(this);
            try {
                dropHandler.addListener(listener);
                dropHandler.performDrop(url, null);
                while( !listener.processed && !monitor.isCanceled() ) {
                    synchronized (this) {
                        try {
                            wait(500);
                        } catch (InterruptedException e) {
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGDropHandler.performDrop()

                        event.doit=false;

                        UDIGDropHandler dropHandler = new UDIGDropHandler();
                        MapEditorPart editor = ApplicationGISInternal.getActiveEditor();
                        dropHandler.setTarget(editor);
                        dropHandler.performDrop(url, null);
                    }
                }
                private boolean recognizedFile( String url ) {
                    if (url.toLowerCase().indexOf("file://") != -1 ){ //$NON-NLS-1$
                        return new FileConnectionFactory().canProcess(url);
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGDropHandler.performDrop()

        final Layer data = map.getLayersInternal().get(0);
        Object destination = map.getLayersInternal().get(2);
       
        handler.setTarget(destination);
        handler.setViewerLocation(ViewerDropLocation.BEFORE);
        handler.performDrop(data, null);
        final Object finalDest=destination;
        UDIGTestUtil.inDisplayThreadWait(4000, new WaitCondition(){

            public boolean isTrue() {
                return data.getZorder()==2 && ((Layer) finalDest).getZorder()==1;
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGDropHandler.performDrop()

        MapEditorPart activeEditor = ApplicationGISInternal.getActiveEditor();
        UDIGDropHandler dropHandler = activeEditor.getDropHandler();
        dropHandler.setTarget(activeEditor);
        dropHandler.setViewerLocation(ViewerDropLocation.NONE);
        dropHandler.performDrop(data, null);

        expectedLayers[0]=2;
       
        UDIGTestUtil.inDisplayThreadWait(4000,c, true);
   
View Full Code Here

Examples of org.locationtech.udig.internal.ui.UDIGDropHandler.performDrop()

                    public void starting( IDropAction action ) {
                    }
                   
                });
                finalDropHandler.setViewerLocation(ViewerDropLocation.ON);
                finalDropHandler.performDrop(contents, null);
            }
        }
        private Object firstSelectedElement() {
            ISelection selection = part.getSite().getSelectionProvider().getSelection();
            if( selection.isEmpty() || !(selection instanceof IStructuredSelection)){
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.