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
* See IWorkbenchPreferencePage. This class does nothing with he Workbench.
     */
    public void init(IWorkbench workbench) {
        this.workbench = workbench;
        setPreferenceStore(workbench.getPreferenceStore());
    }
    /**
     * Move the current selection in the build list down.
     */
    private void moveSelectionDown() {
        
        if (this.buildList.getSelectionCount() == 1) {
            int currentIndex = this.buildList.getSelectionIndex();
            if (currentIndex < this.buildList.getItemCount() - 1) {
                String elementToMove = this.buildList.getItem(currentIndex);
                this.buildList.remove(currentIndex);
                this.buildList.add(elementToMove, currentIndex + 1);
                this.buildList.select(currentIndex + 1);
            }
        }
    }
    /**
     * Move the current selection in the build list up.
     */
    private void moveSelectionUp() {
        int currentIndex = this.buildList.getSelectionIndex();
        
        if (currentIndex > 0 && this.buildList.getSelectionCount() == 1) {
            String elementToMove = this.buildList.getItem(currentIndex);
            this.buildList.remove(currentIndex);