private void handleUpdate() {
		// We can simplify this when we move more methods into the Preference Interface.
		if (pref instanceof PreferenceInt) {
			PreferenceInt prefInt = (PreferenceInt) pref;
			prefInt.setTmp(field.getText());
			field.setText(String.valueOf(prefInt.tmp));
		} else if (pref instanceof PreferenceString) {
			PreferenceString prefString = (PreferenceString) pref;
			prefString.setTmp(field.getText());
			field.setText(prefString.tmp);
		}
	}