Bug 80429 [Preferences] [Dialogs] FieldEditors should relax requirements to support DialogPages
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/dialogs/BuildOrderPreferencePage.java
* Set the widgets that select build order to be enabled or diabled.
     * @param value boolean
     */
    private void setBuildOrderWidgetsEnablement(boolean value) {
        
        
        Control[] children = this.buttonComposite.getChildren();
        for (int i = 0; i < children.length; i++) {
            children[i].setEnabled(value);
        }
    }
    /**
     * Return a sorted array of the names of the projects that are already in the currently 
     * displayed names.
     * @return String[]
     * @param allProjects - all of the projects in the workspace 
     * @param currentlyDisplayed - the names of the projects already being displayed
     */
    private String[] sortedDifference(IProject[] allProjects,
            String[] currentlyDisplayed) {
        TreeSet difference = new TreeSet();
        for (int i = 0; i < allProjects.length; i++) {
            if (!includes(currentlyDisplayed, allProjects[i].getName()))
                difference.add(allProjects[i].getName());
        }
        String[] returnValue = new String[difference.size()];
        difference.toArray(returnValue);
        return returnValue;
    }
}