Bug 92203 [Preferences] preferences package needs cleanup
org.eclipse.ui.preferences contains classes that should not be API by my estimation. These should be cleaned up before 3.1 ships.
bundles/org.eclipse.ui.ide/src/org/eclipse/ui/internal/wizards/preferences/WizardPreferencesPage.java
GridLayout layout = new GridLayout();
        layout.numColumns = 2;
        buttonComposite.setLayout(layout);
        GridData data = new GridData(GridData.GRAB_HORIZONTAL);
        data.grabExcessHorizontalSpace = true;
        buttonComposite.setLayoutData(data);
        Button selectButton = createButton(buttonComposite,
                IDialogConstants.SELECT_ALL_ID, IDEWorkbenchMessages.SelectionDialog_selectLabel, false);
        SelectionListener listener = new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                setAllChecked(true);
            }
        };
        selectButton.addSelectionListener(listener);
        Button deselectButton = createButton(buttonComposite,
                IDialogConstants.DESELECT_ALL_ID, IDEWorkbenchMessages.SelectionDialog_deselectLabel, false);
        listener = new SelectionAdapter() {
            public void widgetSelected(SelectionEvent e) {
                setAllChecked(false);
            }
        };
        deselectButton.addSelectionListener(listener);
    }
    /**
     * @param bool
     */
    protected void setAllChecked(boolean bool) {
        TableItem[] items = transfersTable.getItems();
        for (int i = 0; i < items.length; i++) {
            TableItem item = items[i];