use of org.eclipse.jface.preference.FontFieldEditor in project ecf by eclipse.
the class ClientPreferencePage method createFieldEditors.
public void createFieldEditors() {
addField(new BooleanFieldEditor(ClientPlugin.PREF_USE_CHAT_WINDOW, Messages.ClientPreferencePage_USE_CHAT_WINDOW_FIELD_TEXT, getFieldEditorParent()));
addField(new BooleanFieldEditor(ClientPlugin.PREF_DISPLAY_TIMESTAMP, Messages.ClientPreferencePage_SHOW_TIME_FOR_CHAT_FIELD, getFieldEditorParent()));
addField(new FontFieldEditor(ClientPlugin.PREF_CHAT_FONT, Messages.ClientPreferencePage_CHAT_WINDOW_FONT_FIELD, getFieldEditorParent()));
// addField(new
// BooleanFieldEditor(ClientPlugin.PREF_CONFIRM_FILE_RECEIVE, "Confirm
// before receiving file.", getFieldEditorParent()));
// addField(new SpacerFieldEditor(
// getFieldEditorParent()));
addField(new ColorFieldEditor(ClientPlugin.PREF_ME_TEXT_COLOR, Messages.ClientPreferencePage_CHAT_COLOR_FOR_ME_FIELD, getFieldEditorParent()));
addField(new ColorFieldEditor(ClientPlugin.PREF_OTHER_TEXT_COLOR, Messages.ClientPreferencePage_CHAT_TEXT_COLOR_FOR_OTHER_FIELD, getFieldEditorParent()));
addField(new ColorFieldEditor(ClientPlugin.PREF_SYSTEM_TEXT_COLOR, Messages.ClientPreferencePage_CHAT_COLOR_FOR_SYSTEM_FIELD, getFieldEditorParent()));
addField(new SpacerFieldEditor(getFieldEditorParent()));
playImmediate = new BooleanFieldEditor(ClientPlugin.PREF_SHAREDEDITOR_PLAY_EVENTS_IMMEDIATELY, Messages.ClientPreferencePage_PLAY_EDITOR_EVENTS_IMMEDIATELY, getFieldEditorParent());
addField(playImmediate);
askParent = getFieldEditorParent();
ask = new BooleanFieldEditor(ClientPlugin.PREF_SHAREDEDITOR_ASK_RECEIVER, Messages.ClientPreferencePage_ASK_RECEIVER_FOR_PERMISSION, askParent);
addField(ask);
boolean val = getPreferenceStore().getBoolean(ClientPlugin.PREF_SHAREDEDITOR_PLAY_EVENTS_IMMEDIATELY);
ask.setEnabled(val, askParent);
}
Aggregations