Bug 335960 [IDE] Update BuildAction to use new Workspace Build Configurations API
bundles/org.eclipse.ui.ide/extensions/org/eclipse/ui/actions/BuildAction.java
try {
            ICommand[] commands = project.getDescription().getBuildSpec();
            if (commands.length > 0) {
                return true;
            }
        } catch (CoreException e) {
            
            
            
            
        }
        return false;
    }
    /* (non-Javadoc)
     * Method declared on WorkspaceAction.
     */
    protected void invokeOperation(IResource resource, IProgressMonitor monitor)
            throws CoreException {
        ((IProject) resource).build(buildType, monitor);
    }
    
    /* (non-Javadoc)
     * Method declared on Action
     */
    public boolean isEnabled() {
    	
		IWorkbenchWindow window = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
		if (window != null) {
			selectionChanged(new StructuredSelection(BuildUtilities.findSelectedProjects(window)));
		}