Package org.locationtech.udig.internal.ui

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


    view = (CatalogView) PlatformUI.getWorkbench()
        .getActiveWorkbenchWindow().getActivePage().showView(
            CatalogView.VIEW_ID);
    viewer = view.getTreeviewer();
    UDIGViewerDropAdapter adapter = new UDIGViewerDropAdapter(viewer,
        new StaticDestinationProvider(view));
    handler = adapter.getDropHandler();
        handler.setTarget(view);
    handler.setViewerLocation(ViewerDropLocation.NONE);
  }
View Full Code Here


    public static UDIGDropTargetListener addDropSupport(StructuredViewer viewer, IDropTargetProvider defaultTarget, boolean showDropFeedback,
             boolean scrollExpandEnabled ) {
        int dndOperations = DND.DROP_COPY | DND.DROP_MOVE | DND.DROP_LINK | DND.DROP_DEFAULT;
        Set<Transfer> transfers = getTransfers();

        UDIGViewerDropAdapter viewerDropAdapter = new UDIGViewerDropAdapter(viewer, defaultTarget);
        viewerDropAdapter.setFeedbackEnabled(showDropFeedback);
        viewerDropAdapter.setScrollExpandEnabled(scrollExpandEnabled);
        viewer.addDropSupport(dndOperations,
                transfers.toArray(new Transfer[transfers.size()]),
                viewerDropAdapter);
        return viewerDropAdapter;
    }  
View Full Code Here

TOP

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

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.