Package org.eclipse.jface.action

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


            // Find reference group.
            if (mgroup == null) {
        mgroup = IWorkbenchActionConstants.MB_ADDITIONS;
      }
            IContributionItem sep = parent.find(mgroup);
            if (sep == null) {
                if (appendIfMissing) {
          addGroup(parent, mgroup);
        } else {
                    WorkbenchPlugin
View Full Code Here


    assert fileMenu != null;
    fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
    IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(
        IWorkbenchActionConstants.M_EDIT);
    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
View Full Code Here

    assert fileMenu != null;
    fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
    IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(
        IWorkbenchActionConstants.M_EDIT);
    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
  }
View Full Code Here

    assert fileMenu != null;
    fileMenu.remove("pageSetupAction"); //$NON-NLS-1$
    IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(
        IWorkbenchActionConstants.M_EDIT);
    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
  }
View Full Code Here

        new EnhancedPrintActionHelper());
    fileMenu.insertBefore("print", printPreviewAction); //$NON-NLS-1$
    IMenuManager editMenu = bars.getMenuManager().findMenuUsingPath(
        IWorkbenchActionConstants.M_EDIT);
    assert editMenu != null;
    if (editMenu.find("validationGroup") == null) { //$NON-NLS-1$
      editMenu.add(new GroupMarker("validationGroup")); //$NON-NLS-1$
    }
    IAction validateAction = new ValidateAction(page);
    editMenu.appendToGroup("validationGroup", validateAction); //$NON-NLS-1$
  }
View Full Code Here

   */
  public void logging(IStatus status, String plugin)
  {
    IMenuManager menuManager = getViewSite().getActionBars().getMenuManager();
   
    IContributionItem item = menuManager.find(ShowExceptionAction.ID);
   
    if( item != null )
      menuManager.remove(item);
   
    ShowExceptionAction action = new ShowExceptionAction(status);
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.