Package org.eclipse.jface.action

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


      if (popupmenu) {
        // Context menu need a newly created contribution item
        if (sep != null && sep.isGroupMarker())
          parent.appendToGroup(sep.getId(), ad.getAction());
        else
          parent.insertAfter(mgroup, ad.getAction());
      }
      else {
        // Normal menu need to add existing contribution item to
        // remove it from menu listener
        if (sep != null && sep.isGroupMarker())
View Full Code Here


        // Normal menu need to add existing contribution item to
        // remove it from menu listener
        if (sep != null && sep.isGroupMarker())
          parent.appendToGroup(sep.getId(), ad.getContributionItem());
        else
          parent.insertAfter(mgroup, ad.getContributionItem());
      }
    }
    catch (IllegalArgumentException e) {
      Logger.log(Logger.ERROR, "Invalid Menu Extension (Group is missing): " + ad.getId()); //$NON-NLS-1$
      parent = null;
View Full Code Here

    IMenuManager projectMenu = menuManager
    .findMenuUsingPath(IWorkbenchActionConstants.M_PROJECT);
    if (projectMenu != null)
    {     
      projectMenu.insertAfter("buildProject", compile);
      projectMenu.insertAfter(compile.getId(), synthesize);
    }

    IMenuManager navigateMenu = menuManager
        .findMenuUsingPath(IWorkbenchActionConstants.M_NAVIGATE);
View Full Code Here

    IMenuManager projectMenu = menuManager
    .findMenuUsingPath(IWorkbenchActionConstants.M_PROJECT);
    if (projectMenu != null)
    {     
      projectMenu.insertAfter("buildProject", compile);
      projectMenu.insertAfter(compile.getId(), synthesize);
    }

    IMenuManager navigateMenu = menuManager
        .findMenuUsingPath(IWorkbenchActionConstants.M_NAVIGATE);
    if (navigateMenu != null)
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.