Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.SubMenuManager


   * @param parent
   *            the parent menu manager
   * @return the menu manager
   */
  protected SubMenuManager createSubMenuManager(IMenuManager parent) {
    return new SubMenuManager(parent);
  }
View Full Code Here


    if (includeEditorInput) {
      bitSet |= INCLUDE_EDITOR_INPUT;
    }
    menu.addMenuListener(this);
    if (!menu.getRemoveAllWhenShown()) {
      menuWrapper = new SubMenuManager(menu);
      menuWrapper.setVisible(true);
    }
    readStaticActionsFor(id);
       
    Platform.getExtensionRegistry().addRegistryChangeListener(this);
View Full Code Here

    contextMenu.add(new Separator());
    contextMenu.add(showWhitespaceAction);
    contextMenu.add(new Separator());

    if (editable) {
      final SubMenuManager quickFixMenu = new SubMenuManager(contextMenu);
      quickFixMenu.setVisible(true);
      quickFixMenu.addMenuListener(new IMenuListener() {
        public void menuAboutToShow(IMenuManager manager) {
          quickFixMenu.removeAll();
          addProposals(quickFixMenu);
        }
      });
    }
View Full Code Here

TOP

Related Classes of org.eclipse.jface.action.SubMenuManager

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.