Search in sources :

Example 6 with FontFieldEditor

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);
}
Also used : FontFieldEditor(org.eclipse.jface.preference.FontFieldEditor) ColorFieldEditor(org.eclipse.jface.preference.ColorFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Aggregations

FontFieldEditor (org.eclipse.jface.preference.FontFieldEditor)6 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)2 SelectionEvent (org.eclipse.swt.events.SelectionEvent)2 GridData (org.eclipse.swt.layout.GridData)2 GridLayout (org.eclipse.swt.layout.GridLayout)2 Composite (org.eclipse.swt.widgets.Composite)2 Label (org.eclipse.swt.widgets.Label)2 ColorFieldEditor (org.eclipse.jface.preference.ColorFieldEditor)1 ColorSelector (org.eclipse.jface.preference.ColorSelector)1 IPropertyChangeListener (org.eclipse.jface.util.IPropertyChangeListener)1 PropertyChangeEvent (org.eclipse.jface.util.PropertyChangeEvent)1 ArrayContentProvider (org.eclipse.jface.viewers.ArrayContentProvider)1 ISelectionChangedListener (org.eclipse.jface.viewers.ISelectionChangedListener)1 SelectionChangedEvent (org.eclipse.jface.viewers.SelectionChangedEvent)1 TableViewer (org.eclipse.jface.viewers.TableViewer)1 ViewerComparator (org.eclipse.jface.viewers.ViewerComparator)1 ControlAdapter (org.eclipse.swt.events.ControlAdapter)1 ControlEvent (org.eclipse.swt.events.ControlEvent)1 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)1 SelectionListener (org.eclipse.swt.events.SelectionListener)1