Package org.locationtech.udig.internal.ui

Examples of org.locationtech.udig.internal.ui.UDIGControlDropListener


      UDIGDropHandler dropHandler) {
    int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK | DND.DROP_DEFAULT;
      Set<Transfer> transfers = getTransfers();
      DropTarget target=new DropTarget(control, dndOperations);
      target.setTransfer(transfers.toArray(new Transfer[transfers.size()]));
      UDIGControlDropListener controlDropListener = new UDIGControlDropListener(destination,dropHandler);
        target.addDropListener(controlDropListener);
        return new DropTargetDescriptor(target, controlDropListener);   
  }
View Full Code Here


    public static void registerUDigDND( IWorkbenchWindowConfigurer configurer, UDIGDropHandler dropHandler ) {
        Set<Transfer> transfers = getTransfers();
        for (Transfer transfer : transfers ) {
            configurer.addEditorAreaTransfer(transfer);
        }
        configurer.configureEditorAreaDropListener(new UDIGControlDropListener(new EditorPlaceholder(),dropHandler));
    }
View Full Code Here

     * @param the dropHandler strategy for processing the drop using the DropAction extension point
     * @return  a drop listener that will send the drop event to the
     * currently active editor.
     */
  public static UDIGControlDropListener getEditorDropListener(UDIGDropHandler dropHandler) {
    return new UDIGControlDropListener(new EditorPlaceholder(),dropHandler);
  }
View Full Code Here

 
  @Before
  public void setUp() throws Exception {
        ConnectionFactoryManager.instance().getConnectionFactoryDescriptors();
   
    UDIGControlDropListener dropper = UDIGDragDropUtilities.getEditorDropListener();
    handler = dropper.getHandler();
    handler.setTarget(new MapEditorWithPalette());
    done = false;
  }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.internal.ui.UDIGControlDropListener

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.