protected void performDefaults( ) { maxNumberOfElementPassed.setStringValue( String.valueOf( DEFAULT_MAX_NUM_OF_ELEMENT_PARSED )); super.performDefaults( ); }
/** * For tests purpose only.Set auto-save interval text field value * programmatically. A call of this method when the auto-save preference * page is closed won't do anything. * * @param interval * the value to set (between 0 and Integer.MAX_VALUE). */ protected void setAutoSaveIntervalTextValue(int interval) { if (intervalField != null && intervalComposite != null && !intervalField.getTextControl(intervalComposite).isDisposed() && autoSaveButton != null && !autoSaveButton.isDisposed() && autoSaveButton.getSelection()) { intervalField.setStringValue(String.valueOf(interval)); } }
@Override public void performDefaults() { boolean autoSave = getPreferenceStore().getDefaultBoolean(IPreferenceConstants.SAVE_AUTOMATICALLY); autoSaveButton.setSelection(autoSave); autoSaveButton.notifyListeners(SWT.Selection, new Event()); int interval = getPreferenceStore().getDefaultInt(IPreferenceConstants.SAVE_AUTOMATICALLY_INTERVAL); intervalField.setStringValue(String.valueOf(interval)); intervalField.setEnabled(autoSave, intervalComposite); super.performDefaults(); }
.getDescription(); long interval = description.getSnapshotInterval() / 60000; saveInterval.setStringValue(Long.toString(interval));
maxNumberOfElementPassed.setStringValue( defaultMaxSchema );