Package org.locationtech.udig.project.ui.tool

Examples of org.locationtech.udig.project.ui.tool.ModalTool


      build.append(")");
      return build.toString();
  }
    public ModalTool getMapTool() {
        IToolManager tools = ApplicationGIS.getToolManager();
        ModalTool tool = (ModalTool) tools.findTool(getId());
        return tool;
    }
View Full Code Here


            for( IConfigurationElement element : extension.getConfigurationElements() ) {
                String name = element.getName();
                System.out.println(name);
                if ("modalTool".equals(name)) {
                    try {
                        ModalTool tool = (ModalTool) element.createExecutableExtension("class");
                        System.out.println(tool);
                    } catch (CoreException e) {
                        // Perhaps an error in the constructor?
                        String message = "Could not create Modal tool "
                                + element.getAttribute("class");
View Full Code Here

            public void process( IExtension extension, IConfigurationElement element )
                    throws Exception {
                String name = element.getName();
                System.out.println(name);
                if ("modalTool".equals(name)) {
                    ModalTool tool = (ModalTool) element.createExecutableExtension("class");
                    System.out.println(tool);
                }
            }
        });
    }
View Full Code Here

            public void process( IExtension extension, IConfigurationElement element )
                    throws Exception {
                String name = element.getName();
                System.out.println(name);
                if ("modalTool".equals(name)) {
                    ModalTool tool = (ModalTool) element.createExecutableExtension("class");
                    System.out.println(tool);
                }
            }
        });
    }
View Full Code Here

        if (type == BACKGROUND) {
            getTool().setContext(toolContext);
           
        } else if ( type == MODAL && toolManager.getActiveToolProxy() == this) {
          ModalTool modalTool =  getModalTool();
          modalTool.setContext(toolContext);
            String currentCursorID = modalTool.getCursorID();
            toolContext.getViewportPane().setCursor(
              ApplicationGIS.getToolManager().findToolCursor(currentCursorID));

        } else if (tool != null) {
            getTool().setContext(toolContext);
View Full Code Here

                                    tool.setContext(toolContext);
                                    tool.setEnabled(isEnabled());

                                    if(tool instanceof ModalTool){
                                      IMapEditorSelectionProvider selectionProvider = getSelectionProvider();
                                      ModalTool modalTool = (ModalTool) tool;
                                      modalTool.setSelectionProvider(selectionProvider);
                                    }

                                } catch (CoreException e) {
                                    ProjectUIPlugin.log("Error loading tool", e); //$NON-NLS-1$
                                }
View Full Code Here

      }
      setChecked(active); // will check this in each menu / toolbar contribution
     
      if (getTool() instanceof ModalTool) {
            if( isActive() != active ){
                ModalTool modalTool = getModalTool();
                modalTool.setActive(active);
                if (active){
                    // allow tool manager to update the activeTool cursor etc..
                    toolManager.setActiveModalToolProxy(this);
//                  String currentCursorID = modalTool.getCursorID();
//                  toolContext.getViewportPane().setCursor(toolManager.findToolCursor(currentCursorID));
View Full Code Here

TOP

Related Classes of org.locationtech.udig.project.ui.tool.ModalTool

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.