Search in sources :

Example 36 with BooleanFieldEditor

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

the class ConnectionPreferencePage 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));
    singleConnectionMode = new BooleanFieldEditor("singleConnectionMode", "Single Connection Mode", getFieldEditorParent());
    addField(singleConnectionMode);
    connectionString = new StringFieldEditor("connectionString", "Connection String (for single connection mode)", getFieldEditorParent());
    addField(connectionString);
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) Label(org.eclipse.swt.widgets.Label) GridData(org.eclipse.swt.layout.GridData) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 37 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor 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

BooleanFieldEditor (org.eclipse.jface.preference.BooleanFieldEditor)37 Composite (org.eclipse.swt.widgets.Composite)20 IntegerFieldEditor (org.eclipse.jface.preference.IntegerFieldEditor)15 StringFieldEditor (org.eclipse.jface.preference.StringFieldEditor)11 GridData (org.eclipse.swt.layout.GridData)10 Label (org.eclipse.swt.widgets.Label)9 RadioGroupFieldEditor (org.eclipse.jface.preference.RadioGroupFieldEditor)8 Group (org.eclipse.swt.widgets.Group)8 GridLayout (org.eclipse.swt.layout.GridLayout)7 ComboFieldEditor (org.eclipse.jface.preference.ComboFieldEditor)5 Button (org.eclipse.swt.widgets.Button)4 FieldEditor (org.eclipse.jface.preference.FieldEditor)3 SelectionAdapter (org.eclipse.swt.events.SelectionAdapter)3 SelectionEvent (org.eclipse.swt.events.SelectionEvent)3 Link (org.eclipse.swt.widgets.Link)3 ColorFieldEditor (org.eclipse.jface.preference.ColorFieldEditor)2 DirectoryFieldEditor (org.eclipse.jface.preference.DirectoryFieldEditor)2 FileFieldEditor (org.eclipse.jface.preference.FileFieldEditor)2 SWT (org.eclipse.swt.SWT)2 SelectionListener (org.eclipse.swt.events.SelectionListener)2