3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.taxeditor
.bulkeditor
.preference
;
13 import org
.eclipse
.jface
.preference
.BooleanFieldEditor
;
14 import org
.eclipse
.jface
.preference
.FieldEditorPreferencePage
;
15 import org
.eclipse
.ui
.IWorkbench
;
16 import org
.eclipse
.ui
.IWorkbenchPreferencePage
;
18 import eu
.etaxonomy
.taxeditor
.preference
.IPreferenceKeys
;
19 import eu
.etaxonomy
.taxeditor
.preference
.PreferencesUtil
;
23 * @created Dec 13, 2010
26 public class BulkEditorGeneralPreferencePage
extends FieldEditorPreferencePage
implements IWorkbenchPreferencePage
{
29 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
32 protected void createFieldEditors() {
33 addField(new BooleanFieldEditor(IPreferenceKeys
.BULK_EDITOR_OCCURRENCE_SHOW_FIELD_UNITS
,
34 "Show Field Units in Bulk Editor.",
35 getFieldEditorParent()));
36 addField(new BooleanFieldEditor(IPreferenceKeys
.BULK_EDITOR_AVOID_FACADE
,
37 "Show only type-specific details views for specimens.",
38 getFieldEditorParent()));
42 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
45 public void init(IWorkbench workbench
) {
46 setPreferenceStore(PreferencesUtil
.getPreferenceStore());