Merge branch 'release/3.12.0'
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / SpecimenOrObservationPreferences.java
1 // $Id$
2 /**
3 * Copyright (C) 2014 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10 package eu.etaxonomy.taxeditor.preference;
11
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;
16
17 /**
18 * @author pplitzner
19 * @date 13.02.2014
20 *
21 */
22 public class SpecimenOrObservationPreferences extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
23
24 @Override
25 public void init(IWorkbench workbench) {
26 setPreferenceStore(PreferencesUtil.getPreferenceStore());
27 }
28
29 @Override
30 protected void createFieldEditors() {
31 addField(new BooleanFieldEditor(IPreferenceKeys.DETERMINATION_ONLY_FOR_FIELD_UNITS,
32 "Taxon determination only on FieldUnit level",
33 getFieldEditorParent()));
34 addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_COLLECTING_AREAS_IN_GENERAL_SECTION,
35 "Show \"Collecting Areas\" in \"General\" section of details view",
36 getFieldEditorParent()));
37 addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_TAXON_ASSOCIATIONS,
38 "Show taxon associations of a specimen in the details view",
39 getFieldEditorParent()));
40 }
41
42
43 }