Examples of IUDIGView


Examples of org.locationtech.udig.project.ui.IUDIGView

         * @see org.eclipse.ui.IPartListener2#partVisible(org.eclipse.ui.IWorkbenchPartReference)
         */
        @SuppressWarnings("unchecked")
        public void partVisible( IWorkbenchPartReference partRef ) {
            if (partRef.getPart(false) instanceof IUDIGView) {
                IUDIGView udigview = (IUDIGView) partRef.getPart(false);
                if (!views.contains(udigview))
                    views.add(udigview);
                SimpleFeature editFeature;
                ToolContext copy;
                synchronized (this) {
                    if (!validateContext(currentContext))
                        return;
                    copy = currentContext.copy();
                    editFeature = currentContext.getEditManager().getEditFeature();
                }
                try {
                    udigview.setContext(copy);
                    if (editFeature != null)
                        udigview.editFeatureChanged(editFeature);
                } catch (Throwable e) {
                    UiPlugin.log(udigview + " threw an exception", e); //$NON-NLS-1$
                }

            } else if (partRef.getPart(false) instanceof MapPart) {
View Full Code Here

Examples of org.locationtech.udig.project.ui.IUDIGView

        SimpleFeature feature = (SimpleFeature) ((IStructuredSelection) selection)
                .getFirstElement();

        if (viewId != null) {
            try {
                IUDIGView view = (IUDIGView) PlatformUI.getWorkbench().getActiveWorkbenchWindow()
                        .getActivePage().showView(viewId, null, IWorkbenchPage.VIEW_VISIBLE);
                try {
                    view.editFeatureChanged(feature);
                } catch (Throwable e) {
                    UiPlugin.log(view + " threw an exception", e); //$NON-NLS-1$
                }
            } catch (PartInitException e) {
                ProjectUIPlugin.log(null, e);
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.