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