3 * Copyright (C) 2016 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.preference
;
12 import org
.eclipse
.jface
.preference
.BooleanFieldEditor
;
13 import org
.eclipse
.jface
.preference
.FieldEditorPreferencePage
;
14 import org
.eclipse
.ui
.IWorkbench
;
15 import org
.eclipse
.ui
.IWorkbenchPreferencePage
;
22 public class AdminGeneralPreferences
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage
{
25 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
28 public void init(IWorkbench workbench
) {
29 setPreferenceStore(PreferencesUtil
.getPreferenceStore());
35 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
38 protected void createFieldEditors() {
39 addField(new BooleanFieldEditor(IPreferenceKeys
.IS_SHOW_UP_WIDGET_IS_DISPOSED
,
40 "Show up widget is disposed error messages.",
41 getFieldEditorParent()));
42 addField(new BooleanFieldEditor(IPreferenceKeys
.DISABLE_SERVICES_API_TIMESTAMP_CHECK
,
43 "Disable services api timestamp check",
44 getFieldEditorParent()));
45 addField(new BooleanFieldEditor(
46 IPreferenceKeys
.SHOW_EXPERIMENTAL_FEATURES
,
47 "Show experimental features", getFieldEditorParent()));