Package org.locationtech.udig.tools.merge.internal.view

Examples of org.locationtech.udig.tools.merge.internal.view.MergeView$CancelButtonAction


        // search an existent view or open a new one
        if (!this.mergeContext.isMergeViewActive()) {
            openMergeView(mouseEvent.x, mouseEvent.y, this.mergeContext);
        }
        MergeView mergeView = this.mergeContext.getMergeView();

        assert mergeView != null;

        // presents the selected features in the map and the merge view
        ILayer selectedLayer = getContext().getSelectedLayer();
View Full Code Here


     * @param context
     */
    private void openMergeView(int eventX, int eventY, MergeContext mergeContext) {

        try {
            MergeView view = (MergeView) ApplicationGIS.getView(true, MergeView.ID);
            if (view == null) {
                // crates a new merge view
                IWorkbenchPage page = PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                        .getActivePage();
                view = (MergeView) page.findView(MergeView.ID);
            }
            assert view != null : "view is null"; //$NON-NLS-1$

            // associates this the merge view with the merge context
            view.setMergeContext(mergeContext);
            mergeContext.activeMergeView(view);

        } catch (Exception ex) {
            AnimationUpdater.runTimer(getContext().getMapDisplay(), new MessageBubble(eventX,
                    eventY, "It cannot be merge", //$NON-NLS-1$
View Full Code Here

TOP

Related Classes of org.locationtech.udig.tools.merge.internal.view.MergeView$CancelButtonAction

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.