Search in sources :

Example 26 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor in project linuxtools by eclipse.

the class LoggingPreferencePage method createFieldEditors.

@Override
protected void createFieldEditors() {
    autoLogOnStart = new BooleanFieldEditor(PreferenceConstants.AUTOLOG_ON_START, PreferenceMessages.getString(AUTO_START_MSG), getFieldEditorParent());
    addField(autoLogOnStart);
    addTimeStamp = new BooleanFieldEditor(PreferenceConstants.LOG_TIMESTAMP, PreferenceMessages.getString(TIME_STAMP_MSG), getFieldEditorParent());
    addField(addTimeStamp);
}
Also used : BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 27 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor in project linuxtools by eclipse.

the class RpmInformationsPreferencePage method createFieldEditors.

@Override
public void createFieldEditors() {
    addField(maxProposalsIntegerFieldEditor());
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_NAME, RpmTags.NAME, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_VERSION, RpmTags.VERSION, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_RELEASE, RpmTags.RELEASE, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_SUMMARY, RpmTags.SUMMARY, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_LICENSE, RpmTags.LICENSE, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_GROUP, RpmTags.GROUP, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_URL, RpmTags.URL, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_INSTALLTIME, Messages.RpmInformationsPreferencePage_1, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_DESCRIPTION, Messages.RpmInformationsPreferencePage_2, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_PACKAGER, RpmTags.PACKAGER, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_VENDOR, RpmTags.VENDOR, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_SIZE, Messages.RpmInformationsPreferencePage_3, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_BUILDTIME, Messages.RpmInformationsPreferencePage_4, getFieldEditorParent()));
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPMINFO_SOURCERPM, Messages.RpmInformationsPreferencePage_5, getFieldEditorParent()));
}
Also used : BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 28 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor in project linuxtools by eclipse.

the class RpmProposalsPreferencePage method createFieldEditors.

@Override
public void createFieldEditors() {
    rpmtools = rpmtoolsRadioGroupFieldEditor();
    addField(rpmtools);
    // FIXME: there is validations problem when a FileFieldEditor is used,
    // so
    // as a quick fix, StringFieldEditor is used.
    StringFieldEditor rpmListFieldEditor = new StringFieldEditor(PreferenceConstants.P_RPM_LIST_FILEPATH, Messages.RpmProposalsPreferencePage_0, getFieldEditorParent());
    addField(rpmListFieldEditor);
    addField(new BooleanFieldEditor(PreferenceConstants.P_RPM_LIST_BACKGROUND_BUILD, Messages.RpmProposalsPreferencePage_1, getFieldEditorParent()));
    addField(buildTimeListRateFieldEditor());
}
Also used : StringFieldEditor(org.eclipse.jface.preference.StringFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 29 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor in project linuxtools by eclipse.

the class IDEPreferencePage method createFieldEditors.

@Override
public void createFieldEditors() {
    addField(new BooleanFieldEditor(IDEPreferenceConstants.P_STORED_TREE, // $NON-NLS-1$
    Localization.getString("IDEPreferencePage.UseStoredTapsetTree"), getFieldEditorParent()));
    addField(new BooleanFieldEditor(IDEPreferenceConstants.P_REMOTE_PROBES, // $NON-NLS-1$
    Localization.getString("IDEPreferencePage.RemoteProbes"), getFieldEditorParent()));
}
Also used : BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

Example 30 with BooleanFieldEditor

use of org.eclipse.jface.preference.BooleanFieldEditor in project linuxtools by eclipse.

the class DataTablePreferencePage method createFieldEditors.

@Override
public void createFieldEditors() {
    addField(new BooleanFieldEditor(GraphingPreferenceConstants.P_JUMP_NEW_TABLE_ENTRY, // $NON-NLS-1$
    Localization.getString("DataTablePreferencePage.JumpNewestEntry"), getFieldEditorParent()));
    addField(new BooleanFieldEditor(GraphingPreferenceConstants.P_AUTO_RESIZE, // $NON-NLS-1$
    Localization.getString("DataTablePreferencePage.AutoResizeColumns"), getFieldEditorParent()));
    addField(new IntegerFieldEditor(GraphingPreferenceConstants.P_MAX_DATA_ITEMS, // $NON-NLS-1$
    Localization.getString("DataTablePreferencePage.MaxDataItems"), getFieldEditorParent()));
}
Also used : IntegerFieldEditor(org.eclipse.jface.preference.IntegerFieldEditor) BooleanFieldEditor(org.eclipse.jface.preference.BooleanFieldEditor)

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