Bug 75316 [preferences] Provide a generic way to update dependencies
I200409280800 On the spelling preference page, check to spell-check comments Click Restore defaults The nested checkboxes under "spell-check comments" remain enabled.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
protected static IStatus validateAbsoluteFilePath(final String path) {
		final StatusInfo status= new StatusInfo();
		if (path.length() > 0) {
			final File file= new File(path);
			if (!file.isFile() || !file.isAbsolute() || !file.exists() || !file.canRead() || !file.canWrite())
				status.setError(PreferencesMessages.getString("SpellingPreferencePage.dictionary.error")); 
		}
		return status;
	}
	/**
	 * Validates that the specified locale is available.
	 * 
	 * @param locale
	 *                   The locale to validate
	 * @return The status of the validation
	 */
	protected static IStatus validateLocale(final String locale) {
		final StatusInfo status= new StatusInfo(IStatus.ERROR, PreferencesMessages.getString("SpellingPreferencePage.locale.error")); 
		final Set locales= SpellCheckEngine.getAvailableLocales();
		Locale current= null;
		for (final Iterator iterator= locales.iterator(); iterator.hasNext();) {
			current= (Locale)iterator.next();
			if (current.toString().equals(locale))
				return new StatusInfo();
		}
		return status;
	}
	/**
	 * Validates that the specified number is positive.
	 *