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
.preference
;
13 import org
.eclipse
.jface
.preference
.BooleanFieldEditor
;
14 import org
.eclipse
.jface
.preference
.FieldEditorPreferencePage
;
15 import org
.eclipse
.jface
.preference
.StringFieldEditor
;
16 import org
.eclipse
.ui
.IWorkbench
;
17 import org
.eclipse
.ui
.IWorkbenchPreferencePage
;
21 * TaxonomicEditorGeneralPreferences class.
25 * @created Sep 1, 2009
28 public class TaxonomicEditorGeneralPreferences
extends
29 FieldEditorPreferencePage
implements IWorkbenchPreferencePage
{
35 * org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors
39 protected void createFieldEditors() {
40 addField(new BooleanFieldEditor(IPreferenceKeys
.SHOW_DEBUG_INFORMATION
,
41 "Show UUID and object ID in supplemental data view.",
42 getFieldEditorParent()));
43 addField(new BooleanFieldEditor(
44 IPreferenceKeys
.SHOULD_EXPAND_SECTION_WHEN_DATA_AVAILABLE
,
45 "Should expand sections when data is available (Details View). This might make the Editor slow.",
46 getFieldEditorParent()));
47 addField(new StringFieldEditor(
48 IPreferenceKeys
.EDIT_MAP_SERVICE_ACCES_POINT
,
49 "EDIT Map Service Access Point:", getFieldEditorParent()));
50 addField(new BooleanFieldEditor(
51 IPreferenceKeys
.SHOULD_CONNECT_AT_STARTUP
,
52 "Connect to last used datasource when launching",
53 getFieldEditorParent()));
54 addField(new BooleanFieldEditor(
55 IPreferenceKeys
.SHOW_EXPERIMENTAL_FEATURES
,
56 "Show experimental features", getFieldEditorParent()));
57 addField(new BooleanFieldEditor(IPreferenceKeys
.BULK_EDITOR_OCCURRENCE_SHOW_FIELD_UNITS
,
58 "Show Field Units in Bulk Editor.",
59 getFieldEditorParent()));
60 addField(new BooleanFieldEditor(IPreferenceKeys
.SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS
,
61 "Open search results in separate windows",
62 getFieldEditorParent()));
69 * org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
72 public void init(IWorkbench workbench
) {
73 setPreferenceStore(PreferencesUtil
.getPreferenceStore());