merged campanula branch to trunk. Main features are: BioCase Query via Imports, Deriv...
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / preference / BulkEditorGeneralPreferencePage.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 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
11 package eu.etaxonomy.taxeditor.bulkeditor.preference;
12
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;
17
18 import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
19 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
20
21 /**
22 * @author n.hoffmann
23 * @created Dec 13, 2010
24 * @version 1.0
25 */
26 public class BulkEditorGeneralPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
27
28 /* (non-Javadoc)
29 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
30 */
31 @Override
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()));
39 }
40
41 /* (non-Javadoc)
42 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
43 */
44 @Override
45 public void init(IWorkbench workbench) {
46 setPreferenceStore(PreferencesUtil.getPreferenceStore());
47 }
48
49
50 }