Examples of MenuItemInfo


Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

      GenerationSettings generationSettings =
          GwtToolkitDescription.INSTANCE.getGenerationSettings();
      generationSettings.setVariable(FieldInitializerVariableDescription.INSTANCE);
    }
    // create new MenuItem
    MenuItemInfo newItem = createObject("com.google.gwt.user.client.ui.MenuItem", "withSubMenu");
    assertTrue(policy.validateCreate(newItem));
    policy.commandCreate(newItem, null);
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

    refresh();
    MenuBarInfo bar = getObjectByName("bar");
    // prepare memento
    List<XmlObjectMemento> mementos;
    {
      MenuItemInfo existingItem = getObjectByName("item");
      XmlObjectMemento memento = XmlObjectMemento.createMemento(existingItem);
      mementos = ImmutableList.of(memento);
    }
    // paste new "Item"
    {
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

        "    <g:MenuItem wbp:name='item_1' text='A'>",
        "      <g:MenuBar wbp:name='subMenu_1'>",
        "    <g:MenuItem wbp:name='item_2' text='B'>",
        "      <g:MenuBar wbp:name='subMenu_2'>");
    MenuBarInfo bar = getObjectByName("bar");
    MenuItemInfo item_1 = getObjectByName("item_1");
    MenuItemInfo item_2 = getObjectByName("item_2");
    // can not move "bar" on "subMenu_1"
    {
      MenuBarInfo subMenu_1 = item_1.getSubMenu();
      IMenuInfo subMenuObject_1 = MenuObjectInfoUtils.getMenuInfo(subMenu_1);
      assertFalse(subMenuObject_1.getPolicy().validateMove(bar));
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

        "  <g:MenuBar wbp:name='bar'>",
        "    <g:MenuItem wbp:name='subMenuItem' text='A'>",
        "      <g:MenuBar wbp:name='subMenu'>",
        "    <g:MenuItem wbp:name='separateItem' text='B'>");
    MenuBarInfo subMenu = getObjectByName("subMenu");
    MenuItemInfo separateItem = getObjectByName("separateItem");
    // can reparent "separateItem" to "subMenu"
    IMenuInfo subMenuObject = MenuObjectInfoUtils.getMenuInfo(subMenu);
    assertTrue(subMenuObject.getPolicy().validateMove(separateItem));
    subMenuObject.getPolicy().commandMove(separateItem, null);
    assertXML(
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

        "    <g:MenuBar wbp:name='menuBar'/>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    MenuBarInfo menuBar = getObjectByName("menuBar");
    //
    MenuItemInfo newItem = loadCreationTool("com.google.gwt.user.client.ui.MenuItem");
    canvas.moveTo(menuBar, 5, 0.5).click();
    assertXML(
        "// filler filler filler filler filler",
        "// filler filler filler filler filler",
        "<ui:UiBinder>",
View Full Code Here

Examples of com.google.gdt.eclipse.designer.uibinder.model.widgets.menu.MenuItemInfo

        "        <g:MenuBar wbp:name='subMenu' vertical='true'/>",
        "      </g:MenuItem>",
        "    </g:MenuBar>",
        "  </g:FlowPanel>",
        "</ui:UiBinder>");
    MenuItemInfo subMenuItem = getObjectByName("subMenuItem");
    MenuBarInfo subMenu = getObjectByName("subMenu");
    //
    loadCreationTool("com.google.gwt.user.client.ui.MenuItem");
    // initially no EditPart for "subMenu"
    canvas.assertNullEditPart(subMenu);
View Full Code Here

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

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

    }

    @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

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

    @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

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

    }
   
    @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
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.