/** * Sets the option <code>key</code> to the value <code>value</code>. * Note that callers have to make sure the corresponding controls are updated afterwards. * * @param key the option key * @param value the new value * @return the old value * * @see #updateControls() * @see #updateCheckBox(Button) * @see #updateCombo(Combo) * @see #updateText(Text) */ protected String setValue(Key key, boolean value) { return setValue(key, String.valueOf(value)); }
protected String setValue(Key key, boolean value) { return setValue(key, String.valueOf(value)); }
/** * Sets the option <code>key</code> to the value <code>value</code>. * Note that callers have to make sure the corresponding controls are updated afterwards. * * @param key the option key * @param value the new value * @return the old value * * @see #updateControls() * @see #updateCheckBox(Button) * @see #updateCombo(Combo) * @see #updateText(Text) */ protected String setValue(Key key, boolean value) { return setValue(key, String.valueOf(value)); }
/** * Reverts the given options to the stored values. * * @param keys the options to revert * @since 3.5 */ protected void revertValues(Key[] keys) { for (int i= 0; i < keys.length; i++) { Key curr= keys[i]; String origValue= curr.getStoredValue(fLookupOrder, false, null); setValue(curr, origValue); } }
/** * Reverts the given options to the stored values. * * @param keys the options to revert * @since 3.5 */ protected void revertValues(Key[] keys) { for (int i= 0; i < keys.length; i++) { Key curr= keys[i]; String origValue= curr.getStoredValue(fLookupOrder, false, null); setValue(curr, origValue); } }
protected void textChanged(Text textControl) { Key key= (Key) textControl.getData(); String number= textControl.getText(); String oldValue= setValue(key, number); validateSettings(key, oldValue, number); }
protected void textChanged(Text textControl) { Key key= (Key) textControl.getData(); String number= textControl.getText(); String oldValue= setValue(key, number); validateSettings(key, oldValue, number); }
protected void textChanged(Text textControl) { Key key= (Key) textControl.getData(); String number= textControl.getText(); String oldValue= setValue(key, number); validateSettings(key, oldValue, number); }
public void performDefaults() { for (int i= 0; i < fAllKeys.length; i++) { Key curr= fAllKeys[i]; String defValue= curr.getStoredValue(fLookupOrder, true, fManager); setValue(curr, defValue); } settingsUpdated(); updateControls(); validateSettings(null, null, null); }
public void performDefaults() { for (int i= 0; i < fAllKeys.length; i++) { Key curr= fAllKeys[i]; String defValue= curr.getStoredValue(fLookupOrder, true, fManager); setValue(curr, defValue); } settingsUpdated(); updateControls(); validateSettings(null, null, null); }
public void performDefaults() { for (int i= 0; i < fAllKeys.length; i++) { Key curr= fAllKeys[i]; String defValue= curr.getStoredValue(fLookupOrder, true, fManager); setValue(curr, defValue); } settingsUpdated(); updateControls(); validateSettings(null, null, null); }
/** * @since 3.1 */ public void performRevert() { for (int i= 0; i < fAllKeys.length; i++) { Key curr= fAllKeys[i]; String origValue= curr.getStoredValue(fLookupOrder, false, null); setValue(curr, origValue); } settingsUpdated(); updateControls(); validateSettings(null, null, null); }
protected void controlChanged(Widget widget) { ControlData data= (ControlData) widget.getData(); String newValue= null; if (widget instanceof Button) { newValue= data.getValue(((Button)widget).getSelection()); } else if (widget instanceof Combo) { newValue= data.getValue(((Combo)widget).getSelectionIndex()); } else { return; } String oldValue= setValue(data.getKey(), newValue); validateSettings(data.getKey(), oldValue, newValue); }
protected void controlChanged(Widget widget) { ControlData data= (ControlData) widget.getData(); String newValue= null; if (widget instanceof Button) { newValue= data.getValue(((Button)widget).getSelection()); } else if (widget instanceof Combo) { newValue= data.getValue(((Combo)widget).getSelectionIndex()); } else { return; } String oldValue= setValue(data.getKey(), newValue); validateSettings(data.getKey(), oldValue, newValue); }
protected void controlChanged(Widget widget) { ControlData data= (ControlData) widget.getData(); String newValue= null; if (widget instanceof Button) { newValue= data.getValue(((Button)widget).getSelection()); } else if (widget instanceof Combo) { newValue= data.getValue(((Combo)widget).getSelectionIndex()); } else { return; } String oldValue= setValue(data.getKey(), newValue); validateSettings(data.getKey(), oldValue, newValue); }