Examples of MenuItemInfo


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

   
    @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

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

    @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

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

        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

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

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

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

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

Examples of org.eclipse.swt.internal.win32.MENUITEMINFO

    }
  }

  boolean getEnabled(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_GET_ENABLED);
View Full Code Here

Examples of org.eclipse.swt.internal.win32.MENUITEMINFO

    return (SystemMenuItem) itemMap.get(new Integer(itemId));
  }

  boolean getSelection(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_GET_SELECTION);
View Full Code Here

Examples of org.eclipse.swt.internal.win32.MENUITEMINFO

    return shell;
  }

  String getText(int itemId) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    if (Win32.getWin32Version() >= Win32.VERSION(4, 10)) {
      info.fMask = Win32.MIIM_STRING;
    } else {
      info.fMask = Win32.MIIM_TYPE;
View Full Code Here

Examples of org.eclipse.swt.internal.win32.MENUITEMINFO

    hMenu = Extension.GetSystemMenu(shell.handle, false);
  }

  void setEnabled(int itemId, boolean enabled) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success) {
      return;
View Full Code Here

Examples of org.eclipse.swt.internal.win32.MENUITEMINFO

        bitmap);
  }

  void setSelection(int itemId, boolean selected) {
    checkState();
    MENUITEMINFO info = new MENUITEMINFO();
    info.cbSize = MENUITEMINFO.sizeof;
    info.fMask = Win32.MIIM_STATE;
    boolean success = Extension.GetMenuItemInfo(hMenu, itemId, false, info);
    if (!success)
      SWT.error(SWT.ERROR_CANNOT_SET_SELECTION);
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.