Bug 3348 DCR: Code formatter enhancement (1GIYHQR)
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/preferences/CodeFormatterPreferencePage.java
}
			} catch (NumberFormatException e) {
				status.setError(JavaUIMessages.getFormattedString("CodeFormatterPreferencePage.invalid_input", number));
			}
		}
		return status;
	}
			
	
	private void updateStatus(IStatus status) {
		if (!status.matches(IStatus.ERROR)) {
			
			for (int i= 0; i < fTextBoxes.size(); i++) {
				Text curr= (Text) fTextBoxes.get(i);
				if (!(curr == fTabSizeTextBox && usesTabs())) {
					IStatus currStatus= validatePositiveNumber(curr.getText());
					status= StatusUtil.getMoreSevere(currStatus, status);
				}
			}
		}	
		setValid(!status.matches(IStatus.ERROR));
		StatusUtil.applyToStatusLine(this, status);
	}
	
	private boolean usesTabs() {
		return TAB.equals(fWorkingValues.get(PREF_TAB_CHAR));
	}
		
}