Package org.locationtech.udig.project.ui.internal

Examples of org.locationtech.udig.project.ui.internal.MapPart


            }
        }
        contributions.removeAll(toRemove);

        ToolManager tools = (ToolManager) ApplicationGIS.getToolManager();
        MapPart currentEditor = tools.currentEditor;
        if (currentEditor != null) {
            if (currentEditor instanceof MapEditorWithPalette) {
                MapEditorWithPalette editor2 = (MapEditorWithPalette) currentEditor;

                MapEditDomain editDomain = editor2.getEditDomain();
View Full Code Here


    }

    SubActionBars2 getActionBars() {
        if (ApplicationGISInternal.getActiveMap() == ApplicationGIS.NO_MAP)
            return null;
        MapPart active = ApplicationGISInternal.getActiveEditor();

        if( active instanceof MapEditorPart){
            MapEditorPart editor = (MapEditorPart) active;
            return (SubActionBars2) editor.getMapEditorSite().getActionBars();
        }
View Full Code Here

        IEditorReference[] editors = page.getEditorReferences();
       
        for (IEditorReference ref : editors) {
      IEditorPart editor = ref.getEditor(false);
      if (editor instanceof MapPart) {
        MapPart mapPart = (MapPart) editor;
        if(getMap() == mapPart.getMap()) {
          return (IActionBars2) editor.getEditorSite().getActionBars();
        }
      }
    }

        IViewReference[] views = page.getViewReferences();
       
        for (IViewReference ref : views) {
      final IViewPart view = ref.getView(false);
      if (view instanceof MapPart) {
        MapPart mapPart = (MapPart) view;
        if(getMap() == mapPart.getMap()) {
          return new IActionBars2Adapter(view);
        }
      }
    }
View Full Code Here

            MessageDialog.openError(Display.getDefault().getActiveShell(),
                    Messages.CreatePageAction_printError_title,
                    Messages.CreatePageAction_printError_text);
        }

        MapPart mapEditor = (MapPart) activeEditor;
       
        Template template = getPageTemplate();

        if (template == null) {
            return;
View Full Code Here

        @Override
        protected void runCurrentTool( ) {
            super.runCurrentTool();
            IMapEditorSelectionProvider provider = ((ToolProxy)currentTool).getSelectionProvider();
            MapPart editor = ApplicationGISInternal.getActiveEditor();
           
            //if( editor!=null && editor.getSite()!=null && provider!=editor.getSite().getSelectionProvider() )
            if( editor != null ){
                editor.setSelectionProvider(provider);
            }
        }
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.internal.MapPart

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.