private final IntPreferenceUi maxIntermediateField;
public BackupPreferencesPage() {
super(BackupPreferences.PATH);
referenceFreqField = new IntPreferenceUi(BackupPreferences.referenceFrequencyInDays(),
"Reference backup frequency (in days):", 4);
referenceFreqField.setSelectAllWhenFocused(true);
maxIntermediateField = new IntPreferenceUi(BackupPreferences.maxNumberOfIntermediateBackups(),
"Maximum number of intermediate backups:", 4);
maxIntermediateField.setSelectAllWhenFocused(true);
addControl(referenceFreqField);
addControl(maxIntermediateField);
}