Bug 56459 Pref Page Type Filters [code manipulation]
The buttons are not sized according to the dialog font.
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/SpellingConfigurationBlock.java
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.
	 * 
	 * @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)); 
			}