Merge branch 'develop' into LibrAlign
[taxeditor.git] / eu.etaxonomy.taxeditor.bulkeditor / src / main / java / eu / etaxonomy / taxeditor / bulkeditor / preference / BulkEditorGeneralPreferencePage.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.bulkeditor.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 import eu.etaxonomy.taxeditor.preference.IPreferenceKeys;
18 import eu.etaxonomy.taxeditor.preference.PreferencesUtil;
19
20 /**
21 * @author n.hoffmann
22 * @created Dec 13, 2010
23 * @version 1.0
24 */
25 public class BulkEditorGeneralPreferencePage extends FieldEditorPreferencePage implements IWorkbenchPreferencePage {
26
27 /* (non-Javadoc)
28 * @see org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors()
29 */
30 @Override
31 protected void createFieldEditors() {
32 addField(new BooleanFieldEditor(IPreferenceKeys.BULK_EDITOR_OCCURRENCE_SHOW_FIELD_UNITS,
33 "Show Field Units in Bulk Editor.",
34 getFieldEditorParent()));
35 }
36
37 /* (non-Javadoc)
38 * @see org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
39 */
40 @Override
41 public void init(IWorkbench workbench) {
42 setPreferenceStore(PreferencesUtil.getPreferenceStore());
43 }
44
45
46 }