Bug 10022 Incorrect "Build" popup action enablement
If "Build" action in the context sensitive popup menu in the Java perspective is always enabled. Even if the user goes to Preferences -> Workbench and selects "Perform build automatically on resource modification" the build menu option still appears in the Java popup menus. I believe this is incorrect. No need for a manual build if the build is already done, automatically. Mazen Faraj.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/ui/actions/BuildActionGroup.java
}
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void fillActionBars(IActionBars actionBar) {
		super.fillActionBars(actionBar);
		setGlobalActionHandlers(actionBar);
	}
	
	/* (non-Javadoc)
	 * Method declared in ActionGroup
	 */
	public void fillContextMenu(IMenuManager menu) {
		super.fillContextMenu(menu);
		appendToGroup(menu, fFullBuildAction);
		appendToGroup(menu, fRefreshAction);
	}
	
	private void setGlobalActionHandlers(IActionBars actionBar) {
		actionBar.setGlobalActionHandler(IWorkbenchActionConstants.BUILD_PROJECT, fBuildAction);
		actionBar.setGlobalActionHandler(IWorkbenchActionConstants.REBUILD_PROJECT, fFullBuildAction);
		actionBar.setGlobalActionHandler(IWorkbenchActionConstants.REFRESH, fRefreshAction);
	}
	
	private void appendToGroup(IMenuManager menu, IAction action) {
		if (action.isEnabled())
			menu.appendToGroup(IContextMenuConstants.GROUP_BUILD, action);
	}			
}