Bug 77871 [GlobalActions] (Re)Build Project should track resources itself
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/actions/BuildSetAction.java
public static BuildSetAction lastBuilt;
    private IWorkingSet workingSet;
    private IWorkbenchWindow window;
    private IActionBarConfigurer actionBars;
    /**
     * Convenience method for extracting the selected projects
     * from a selection
     */
    protected static IProject[] extractProjects(Object[] selection) {
        HashSet projects = new HashSet();