Bug 49751 [Contributions] IWorkbenchActionConstants inconsistency
IWorkbenchActionConstants has M_VIEW but not M_PERSPECTIVE. The M_VIEW comment references the Perspective menu. Also it has M_WORKBENCH which I don't think is used any more. /** * Name of standard Perspective menu (value <code>"view"</code>). */ public static final String M_VIEW = MENU_PREFIX+"view"; //$NON-NLS-1$ /** * Name of standard Workbench menu (value <code>"workbench"</code>). */ public static final String M_WORKBENCH = MENU_PREFIX+"workbench"; // $NON-NLS-1$
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
openProjectAction.dispose();
		closeProjectAction.dispose();
	}
	void updateModeLine(final String text) {
		statusLineItem.setText(text);
	}
	/**
	 * Returns true if the menu with the given ID should
	 * be considered as an OLE container menu. Container menus
	 * are preserved in OLE menu merging.
	 */
	public boolean isContainerMenu(String menuId) {
		if (menuId.equals(IWorkbenchActionConstants.M_FILE))
			return true;
		if (menuId.equals(IWorkbenchActionConstants.M_VIEW))
			return true;
		if (menuId.equals(IWorkbenchActionConstants.M_WORKBENCH))
			return true;
		if (menuId.equals(IWorkbenchActionConstants.M_WINDOW))
			return true;
		return false;
	}
	/**
	 * Return whether or not given id matches the id of the coolitems that
	 * the workbench creates.
	 */
	public boolean isWorkbenchCoolItemId(String id) {
		if (IWorkbenchActionConstants.TOOLBAR_FILE.equalsIgnoreCase(id)) return true;
		if (IWorkbenchActionConstants.TOOLBAR_NAVIGATE.equalsIgnoreCase(id)) return true;
		return false;