Package gov.nasa.arc.mct.gui

Examples of gov.nasa.arc.mct.gui.MenuItemInfo


    }
   
    @Override
    protected void populate() {
        addMenuItemInfos("/help/mct", Arrays.asList(
                new MenuItemInfo("HELP_MCT", MenuItemType.NORMAL),
                new MenuItemInfo("HELP_ABOUT", MenuItemType.NORMAL),
                new MenuItemInfo("HELP_LICENSES", MenuItemType.NORMAL)));
        addMenuItemInfos("/help/memory", Arrays.asList(
                new MenuItemInfo("HELP_MEMORY", MenuItemType.CHECKBOX)));
    }
View Full Code Here


    }

    @Override
    protected void populate() {
        addMenuItemInfos(VIEW_SELECT_EXT, Arrays.asList(
                         new MenuItemInfo("VIEW_SELECT_ALL", MenuItemType.NORMAL)));
       
        addMenuItemInfos(VIEW_HOUSING_EXT, Collections.<MenuItemInfo>singleton(new MenuItemInfo("VIEW_CHANGE_HOUSING", MenuItemType.RADIO_GROUP)));
       
        addMenuItemInfos(VIEW_FORMATTING_EXT, Arrays.asList(
                new MenuItemInfo("VIEW_CHANGE_FORMAT_MODE", MenuItemType.RADIO_GROUP),
                new MenuItemInfo("VIEW_GRIDS", MenuItemType.SUBMENU)));

        addMenuItemInfos(VIEW_AREAS_VISIBILITY_EXT, Arrays.asList(
                new MenuItemInfo("VIEW_SHOW_CANVAS_TITLE_BAR", MenuItemType.CHECKBOX),
                new MenuItemInfo("VIEW_CONTROL_AREAS", MenuItemType.NORMAL)));
       
        addMenuItemInfos(VIEW_REFRESH_EXT, Arrays.asList(
                new MenuItemInfo("VIEW_REFRESH_ACTION", MenuItemType.NORMAL)
                ));
    }
View Full Code Here

    @Override
    protected void populate() {
        // "Open object" and related menu actions
        addMenuItemInfos(THIS_OPEN_EXT,
                Arrays.asList(
                        new MenuItemInfo("THIS_OPEN_ACTION_ID", MenuItemType.NORMAL),
                        new MenuItemInfo(DetectGraphicsDevices.THIS_OPEN_MULTIPLE_MONITORS_MENU, MenuItemType.SUBMENU),
                        new MenuItemInfo("THIS_SAVE_ACTION", MenuItemType.NORMAL),
                        new MenuItemInfo("THIS_SAVE_ALL_ACTION", MenuItemType.NORMAL),
                        new MenuItemInfo("VIEW_REVERT_TO_COMMITTED", MenuItemType.NORMAL)
                ));
       
        // Import / export
        addMenuItemInfos(THIS_PORT_EXT,
                Arrays.asList(            
                        new MenuItemInfo("THIS_IMPORT_SUBMENU", MenuItemType.SUBMENU),
                        new MenuItemInfo("THIS_EXPORT_SUBMENU", MenuItemType.SUBMENU)
                ));
       
        // Placeholder for plugin-introduced additions
        addMenuItemInfos(THIS_ADDITIONS, Collections.<MenuItemInfo>emptyList());
       
        // Quit action - should always be on the bottom, after separator
        addMenuItemInfos(THIS_CLOSE_EXT,
                Arrays.asList(
                        new MenuItemInfo("QUIT_ACTION", MenuItemType.NORMAL)
                ));
    }
View Full Code Here

    }
   
    @Override
    protected void populate() {
        addMenuItemInfos("/conveniences/open.window.ext", Arrays.asList(
                new MenuItemInfo("CONVENIENCES_OPEN_MINE_GROUP", MenuItemType.NORMAL),
                new MenuItemInfo("CONVENIENCES_OPEN_USER_ENV", MenuItemType.NORMAL),
                new MenuItemInfo("RESET_FEED_VIEWS_ACTION", MenuItemType.NORMAL)));
    }
View Full Code Here

   
    @Override
    protected void populate() {
        ArrayList<String> graphicsDeviceNames = DetectGraphicsDevices.getInstance().getGraphicDeviceNames();
        List<MenuItemInfo> menuItemInfoList = new ArrayList<MenuItemInfo>(graphicsDeviceNames.size());
        menuItemInfoList.add(new MenuItemInfo(DetectGraphicsDevices.OPEN_MULTIPLE_MONITORS_THIS_ACTION, MenuItemType.COMPOSITE));
        addMenuItemInfos(DetectGraphicsDevices.THIS_ADDITIONS_MENU_PATH, menuItemInfoList);
    }
View Full Code Here

    @Override
    protected void populate() {
               
        ArrayList<String> graphicsDeviceNames = DetectGraphicsDevices.getInstance().getGraphicDeviceNames();
        List<MenuItemInfo> menuItemInfoList = new ArrayList<MenuItemInfo>(graphicsDeviceNames.size());
        menuItemInfoList.add(new MenuItemInfo(DetectGraphicsDevices.OPEN_MULTIPLE_MONITORS_OBJECTS_ACTION, MenuItemType.COMPOSITE));
        addMenuItemInfos(DetectGraphicsDevices.OBJECTS_ADDITIONS_MENU_PATH, menuItemInfoList);
    }
View Full Code Here

        String compositionKey = PolicyInfo.CategoryType.COMPOSITION_POLICY_CATEGORY.getKey();
        return PolicyManagerImpl.getInstance().execute(compositionKey, policyContext).getStatus();
    }
    @Override
    protected void populate() {
        addMenuItemInfos("", Collections.<MenuItemInfo>singleton(new MenuItemInfo("OBJECTS_NEW_ACTION", MenuItemType.COMPOSITE)));
    }
View Full Code Here

        @Override
        protected void populate() {
            addMenuItemInfos(THIS_SUBMENU_EXT,
                    Arrays.asList(
                            new MenuItemInfo("EXPORT_THIS_TO_IMAGE", MenuItemType.NORMAL)
                            ));
        }
View Full Code Here

       
        @Override
        protected void populate() {
            addMenuItemInfos(OBJECTS_SUBMENU_EXT,
                    Arrays.asList(
                            new MenuItemInfo("EXPORT_VIEW_TO_IMAGE", MenuItemType.NORMAL)
                            ));
        }
View Full Code Here

        return true;
    }
   
    @Override
    protected void populate() {
        addMenuItemInfos("icon/open.ext", Collections.<MenuItemInfo>singleton(new MenuItemInfo("ICON_OPEN_ACTION", MenuItemType.NORMAL)));       
    }
View Full Code Here

TOP

Related Classes of gov.nasa.arc.mct.gui.MenuItemInfo

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.