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/WizardPreferencesExportPage1.java
if (matches.length > 0)
				returnElements[count++] = element;				
		}
		elements = new PreferenceTransferElement[count];
		System.arraycopy(returnElements, 0, elements, 0, count);
		} catch (CoreException e) {
            WorkbenchPlugin.log(e.getMessage(), e);
            return new PreferenceTransferElement[0];
		}
        return elements;
    }
	
    /**
     * @param transfers
     * @return <code>true</code> if the transfer was succesful, and
     *         <code>false</code> otherwise
     */
    protected boolean transfer(IPreferenceFilter[] transfers) {
        File exportFile = new File(getDestinationValue());
        if (!ensureTargetIsValid(exportFile)) {
            return false;
        }
        FileOutputStream fos = null;
        try {
            if (transfers.length > 0) {
                try {
                    fos = new FileOutputStream(exportFile);
                } catch (FileNotFoundException e) {
                    WorkbenchPlugin.log(e.getMessage(), e);
                    return false;