Package org.eclipse.jface.action

Examples of org.eclipse.jface.action.IMenuManager.removeAll()


    private void createTopMenu()
    {
        IActionBars bars = getViewSite().getActionBars();
        IMenuManager menu = bars.getMenuManager();
        menu.removeAll();
        for (final IBundleRepository rep : SigilCore.getGlobalRepositoryManager().getRepositories())
        {
            if (treeViewer.getInput() == null)
            {
                treeViewer.setInput(rep);
View Full Code Here


        super.init(bars);

        IMenuManager menuManager = bars.getMenuManager();
        IMenuManager editMenu = menuManager.findMenuUsingPath(IWorkbenchActionConstants.M_EDIT);
        if (editMenu != null) {
            editMenu.removeAll();
            // editMenu.add(new Separator());
            // editMenu.add(fContentAssistProposal);
            // editMenu.add(fContentAssistTip);
        }
View Full Code Here

    // ok, we passed the checking, now let's create the actions.
    tableMenu.add(action);
    tableMenu.addMenuListener(new IMenuListener() {

      public void menuAboutToShow(IMenuManager manager) {
        tableMenu.removeAll();
        fillTableMenu(tablePart, cellRow, cellColumn, tableMenu);
      }
    });
    menu.appendToGroup(PageDesignerActionConstants.GROUP_CONTAINER,
        tableMenu);
View Full Code Here

        .getResourceString("ActionGroup.Submenu.BackgroundColor"));//$NON-NLS-1$
    colorSub.add(action);
    colorSub.addMenuListener(new IMenuListener() {

      public void menuAboutToShow(IMenuManager manager) {
        colorSub.removeAll();
        ColorSupport.createColorActions(colorSub, ele,
            ICSSPropertyID.ATTR_BACKGROUND_COLOR);
      }
    });
View Full Code Here

    final IMenuManager tableMenu =
      new MenuManager(PDPlugin.getResourceString("ElementEdit.Submenu.Table")); //$NON-NLS-1$
    tableMenu.add(action);
    tableMenu.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        tableMenu.removeAll();
        fillTableMenu(tablePart, cellRow, cellColumn, tableMenu);
      }
    });

    contextMenu.appendToGroup(PageDesignerActionConstants.GROUP_CONTAINER, tableMenu);
View Full Code Here

    // Add the submenu.

    submenu.addMenuListener(new IMenuListener() {

      public void menuAboutToShow(IMenuManager manager) {
        submenu.removeAll();
        ParagraphSupport.createParagraphActions(submenu, selection,
            viewer);
      }
    });
    menu.appendToGroup(PageDesignerActionConstants.GROUP_STYLE, submenu);
View Full Code Here

    if (item instanceof IMenuManager) {
      final IMenuManager submenu = (IMenuManager) item;
        submenu.add(EMPTY_ACTION);
        submenu.addMenuListener(new IMenuListener() {
          public void menuAboutToShow(IMenuManager manager) {
            submenu.removeAll();
            addHeadAddItems(submenu, element);
          }
        });
    }
    }
View Full Code Here

    final IMenuManager colorSub = new MenuManager(PDPlugin
        .getResourceString("ActionGroup.Submenu.Color"));//$NON-NLS-1$
    colorSub.add(action);
    colorSub.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        colorSub.removeAll();
        ColorSupport.createColorActions(colorSub, ele,
            ICSSPropertyID.ATTR_COLOR);
      }
    });
        subMenu.appendToGroup(PageDesignerActionConstants.GROUP_STYLE,
View Full Code Here

    final IMenuManager tableMenu =
      new MenuManager(PDPlugin.getResourceString("ElementEdit.Submenu.Table")); //$NON-NLS-1$
    tableMenu.add(action);
    tableMenu.addMenuListener(new IMenuListener() {
      public void menuAboutToShow(IMenuManager manager) {
        tableMenu.removeAll();
        fillTableMenu(tablePart, cellRow, cellColumn, tableMenu);
      }
    });

    contextMenu.appendToGroup(PageDesignerActionConstants.GROUP_CONTAINER, tableMenu);
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.