Examples of IToolManager


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

     * @param paletteRoot may be null
     */
    public static void dispose( PaletteRoot paletteRoot ) {
        if( paletteRoot == null ) return;
       
        IToolManager tools = ApplicationGIS.getToolManager();
       
        // We should unhook the ToolManager enablement notifications
        for( Object child : paletteRoot.getChildren() ){
            if( child instanceof PaletteContainer){
                PaletteContainer container = (PaletteContainer) child;
View Full Code Here

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

        if (menu == null) {
            final MenuManager contextMenu = new MenuManager();
            contextMenu.setRemoveAllWhenShown(true);
            contextMenu.addMenuListener(new IMenuListener(){
                public void menuAboutToShow( IMenuManager mgr ) {
                    IToolManager tm = ApplicationGIS.getToolManager();
                   
                    contextMenu.add(tm.getENTERAction());
                    contextMenu.add(new Separator());
                   
                    contextMenu.add(tm.getZOOMTOSELECTEDAction());
                    contextMenu.add(new Separator());
                    contextMenu.add(tm.getBACKWARD_HISTORYAction());
                    contextMenu.add(tm.getFORWARD_HISTORYAction());
                    contextMenu.add(new Separator());
                    //contextMenu.add(tm.createCUTAction(MapEditorWithPalette.this));
                    contextMenu.add(tm.getCOPYAction(MapEditorWithPalette.this));
                    contextMenu.add(tm.getPASTEAction(MapEditorWithPalette.this));
                    contextMenu.add(tm.getDELETEAction());

                    /*
                     * Gets contributions from active modal tool if possible
                     */
                    tm.contributeActiveModalTool(contextMenu);

                    contextMenu.add(new Separator());
                    contextMenu.add(new GroupMarker(IWorkbenchActionConstants.MB_ADDITIONS));
                    if (getMap().getEditManager().getEditFeature() != null) {
                        contextMenu.add(ProjectUIPlugin.getDefault().getFeatureEditProcessor()
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.