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
* @param directory
     *            java.io.File
     */
    protected boolean ensureDirectoryExists(File directory) {
        if (!directory.exists()) {
            if (!queryYesNoQuestion(PreferencesMessages.PreferencesExport_createTargetDirectory))
                return false;
            if (!directory.mkdirs()) {
                MessageDialog
                        .openError(
                                getContainer().getShell(),
                                PreferencesMessages.PreferencesExport_error,
                                PreferencesMessages.PreferencesExport_directoryCreationError);
                return false;
            }
        }
        return true;
    }
    /**
     * If the target for export does not exist then attempt to create it. Answer
     * a boolean indicating whether the target exists (ie.- if it either
     * pre-existed or this method was able to create it)
     * 
     * @return boolean
     */
    protected boolean ensureTargetIsValid(File file) {
        if (file.exists()) {
            if (!getOverwriteExisting()) {
                String msg = NLS.bind(PreferencesMessages.WizardPreferencesExportPage1_overwrite, file.getAbsolutePath());
                if (!queryYesNoQuestion(msg))