Examples of ThisMenu


Examples of gov.nasa.arc.mct.gui.menu.housing.ThisMenu

        PolicyManagerImpl.getInstance().refreshExtendedPolicies(Collections.<ExtendedComponentProvider>emptyList());
    }

    public static void setupForMenuBar() {
        // Populate menu bar
        MCTStandardHousingMenuBar.registerMenu("THIS_MENU", new ThisMenu());
        MCTStandardHousingMenuBar.registerMenu("OBJECTS_MENU", new ObjectsMenu());
        MCTStandardHousingMenuBar.registerMenu("EDIT_MENU", new EditMenu());
        MCTStandardHousingMenuBar.registerMenu("VIEW_MENU", new ViewMenu());
        //MCTStandardHousingMenuBar.registerMenu("WINDOWS_MENU", new WindowsMenu());
        MCTStandardHousingMenuBar.registerMenu("CONVENIENCES_MENU", new ConveniencesMenu());
View Full Code Here

Examples of gov.nasa.arc.mct.gui.menu.housing.ThisMenu

    }
   
    @Test
    public void testThisMenuNameProperty() {
        // Check that default is "This"
        Assert.assertEquals(new ThisMenu().getText(), "This");
        // Check that property mct.menu.this overrides default
        System.setProperty("mct.menu.this", "That");
        Assert.assertEquals(new ThisMenu().getText(), "That");
        // Check that cleared property still shows default
        System.clearProperty("mct.menu.this");
        Assert.assertEquals(new ThisMenu().getText(), "This");
    }
View Full Code Here

Examples of gov.nasa.arc.mct.gui.menu.housing.ThisMenu

        Assert.assertEquals(new ThisMenu().getText(), "This");
    }

    @Test
    public void testThisOrder() {
        ContextAwareMenu thisMenu = new ThisMenu() {
            private static final long serialVersionUID = 1L;
            {
                populate();
            }
        };
        List<MenuSection> menuSections = thisMenu.getMenuSections();
       
        // Should have multiple sections (quit should be in its own)
        Assert.assertTrue(menuSections.size() > 1);
       
        // Quit should be at the bottom of the last section
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.