Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
*/
    public static final String ID_BUILD = PlatformUI.PLUGIN_ID + ".BuildAction";
    /**
     * The id of a rebuild all action.
     */
    public static final String ID_REBUILD_ALL = PlatformUI.PLUGIN_ID
            + ".RebuildAllAction";
    private int buildType;
    /**
     * The list of IProjects to build (computed lazily).
     */
    private List projectsToBuild = null;
    /**
     * Creates a new action of the appropriate type. The action id is 
     * <code>ID_BUILD</code> for incremental builds and <code>ID_REBUILD_ALL</code>
     * for full builds.
     *
     * @param shell the shell for any dialogs
     * @param type the type of build; one of
     *  <code>IncrementalProjectBuilder.INCREMENTAL_BUILD</code> or 
     *  <code>IncrementalProjectBuilder.FULL_BUILD</code>
     */
    public BuildAction(Shell shell, int type) {
        super(shell, "");
        if (type == IncrementalProjectBuilder.INCREMENTAL_BUILD) {
            setText(IDEWorkbenchMessages.getString("BuildAction.text")); 
            setToolTipText(IDEWorkbenchMessages
                    .getString("BuildAction.toolTip")); 
            setId(ID_BUILD);
            WorkbenchHelp.setHelp(this,