Search in sources :

Example 6 with ComboFieldEditor

use of org.eclipse.jface.preference.ComboFieldEditor in project yamcs-studio by yamcs.

the class SoundPreferencePage method createFieldEditors.

@Override
protected void createFieldEditors() {
    // separator
    Label label = new Label(getFieldEditorParent(), SWT.NONE);
    label.setLayoutData(new GridData(SWT.FILL, SWT.TOP, false, false, 3, 1));
    // beep fields
    String[][] typeOfBeepTriggers = { { "Do Not Beep", "NONE" }, { "Parameter First Out-of-Limit Value", "FIRST" }, { "Parameter Each Out-of-Limit Value", "EACH" } };
    triggerBeep = new ComboFieldEditor("triggerBeep", "Beep on event:", typeOfBeepTriggers, getFieldEditorParent());
    addField(triggerBeep);
    beepWarning = new BooleanFieldEditor("beepWarning", "Beep on Warning", getFieldEditorParent());
    addField(beepWarning);
    beepCritical = new BooleanFieldEditor("beepCritical", "Beep on Critical", getFieldEditorParent());
    addField(beepCritical);
}
Also used : Label(org.eclipse.swt.widgets.Label) GridData(org.eclipse.swt.layout.GridData) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor) ComboFieldEditor(org.eclipse.jface.preference.ComboFieldEditor)

Aggregations

ComboFieldEditor (org.eclipse.jface.preference.ComboFieldEditor)6 BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)5 Composite (org.eclipse.swt.widgets.Composite)4 IntegerFieldEditor (org.eclipse.jface.preference.IntegerFieldEditor)3 StringFieldEditor (org.eclipse.jface.preference.StringFieldEditor)2 Label (org.eclipse.swt.widgets.Label)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 List (java.util.List)1 ColorFieldEditor (org.eclipse.jface.preference.ColorFieldEditor)1 RadioGroupFieldEditor (org.eclipse.jface.preference.RadioGroupFieldEditor)1 TextSearchEngineRegistry (org.eclipse.search.internal.core.text.TextSearchEngineRegistry)1 ScrolledComposite (org.eclipse.swt.custom.ScrolledComposite)1 FocusEvent (org.eclipse.swt.events.FocusEvent)1 FocusListener (org.eclipse.swt.events.FocusListener)1 KeyAdapter (org.eclipse.swt.events.KeyAdapter)1 KeyEvent (org.eclipse.swt.events.KeyEvent)1 GridData (org.eclipse.swt.layout.GridData)1 ExpansionAdapter (org.eclipse.ui.forms.events.ExpansionAdapter)1 ExpansionEvent (org.eclipse.ui.forms.events.ExpansionEvent)1