Bug 52159 [ActivityMgmt] Activity entry in window menu needs to be defined in object contribution
We should move the activity configuration menu entry to an object contribution in the IDE plug-in so that other applications do not have to have it or hack the UI.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/WorkbenchActionBuilder.java
public static void setIncludeRebuildActions(boolean include) {
		
		INCLUDE_REBUILD_ACTIONS = include;
		IWorkbenchWindow[] windows = PlatformUI.getWorkbench().getWorkbenchWindows();
		for (int i = 0; i < windows.length; i++) {
		    WorkbenchActionBuilder builder = IDEWorkbenchAdvisor.getActionBuilder(windows[i]);
			builder.doSetIncludeRebuildActions(include);
		}
	}
	void doSetIncludeRebuildActions(boolean include) {
		IMenuManager menubar = actionBarConfigurer.getMenuManager();
		IMenuManager manager = menubar.findMenuUsingPath(IWorkbenchActionConstants.M_PROJECT);
		if (manager == null)
			return;
		try {
			if (include) {
				manager.insertAfter(IDEActionFactory.BUILD_PROJECT.getId(), rebuildProjectAction);
				manager.insertAfter(IDEActionFactory.BUILD.getId(), rebuildAllAction);
			} else {
				manager.remove(IDEActionFactory.REBUILD_ALL.getId());
				manager.remove(IDEActionFactory.REBUILD_PROJECT.getId());
			}
		} catch (IllegalArgumentException e) {
		    
		}
		manager.update(false);
	}
	/**
	 * Creates and returns the Help menu.
	 */