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
* @param number
	 *                   The number to validate
	 * @return The status of the validation
	 */
	protected static IStatus validatePositiveNumber(final String number) {
		final StatusInfo status= new StatusInfo();
		if (number.length() == 0) {
			status.setError(PreferencesMessages.getString("SpellingPreferencePage.empty_threshold")); 
		} else {
			try {
				final int value= Integer.parseInt(number);
				if (value < 0) {
					status.setError(PreferencesMessages.getFormattedString("SpellingPreferencePage.invalid_threshold", number)); 
				}
			} catch (NumberFormatException exception) {
				status.setError(PreferencesMessages.getFormattedString("SpellingPreferencePage.invalid_threshold", number)); 
			}
		}
		return status;
	}
	
	private Text fDictionaryPath= null;
	
	private IStatus fFileStatus= new StatusInfo();
	
	private IStatus fThresholdStatus= new StatusInfo();
	/**
	 * Creates a new spelling configuration block.
	 * 
	 * @param context