Project

General

Profile

Download (2.93 KB) Statistics
| Branch: | Tag: | Revision:
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.preference;
12

    
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;
18

    
19
/**
20
 * <p>
21
 * TaxonomicEditorGeneralPreferences class.
22
 * </p>
23
 *
24
 * @author n.hoffmann
25
 * @created Sep 1, 2009
26
 * @version 1.0
27
 */
28
public class TaxonomicEditorGeneralPreferences extends
29
		FieldEditorPreferencePage implements IWorkbenchPreferencePage {
30

    
31
	/*
32
	 * (non-Javadoc)
33
	 *
34
	 * @see
35
	 * org.eclipse.jface.preference.FieldEditorPreferencePage#createFieldEditors
36
	 * ()
37
	 */
38
	@Override
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(IPreferenceKeys.SHOW_ID_IN_ENTITY_SELECTION_DIAOLOG,
44
		        "Show object id in entity selection dialogs.",
45
		        getFieldEditorParent()));
46
		addField(new BooleanFieldEditor(
47
				IPreferenceKeys.SHOULD_EXPAND_SECTION_WHEN_DATA_AVAILABLE,
48
				"Should expand sections when data is available (Details View). This might make the Editor slow.",
49
				getFieldEditorParent()));
50
		addField(new StringFieldEditor(
51
				IPreferenceKeys.EDIT_MAP_SERVICE_ACCES_POINT,
52
				"EDIT Map Service Access Point:", getFieldEditorParent()));
53
		addField(new BooleanFieldEditor(
54
				IPreferenceKeys.SHOULD_CONNECT_AT_STARTUP,
55
				"Connect to last used datasource when launching",
56
				getFieldEditorParent()));
57
		addField(new BooleanFieldEditor(
58
				IPreferenceKeys.SHOW_EXPERIMENTAL_FEATURES,
59
				"Show experimental features", getFieldEditorParent()));
60
		addField(new BooleanFieldEditor(IPreferenceKeys.SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS,
61
		        "Open search results in separate windows",
62
		        getFieldEditorParent()));
63
	      addField(new BooleanFieldEditor(IPreferenceKeys.DISABLE_SERVICES_API_TIMESTAMP_CHECK,
64
	                "Disable services api timestamp check",
65
	                getFieldEditorParent()));
66
	      addField(new BooleanFieldEditor(IPreferenceKeys.RESTORE_NAVIGATOR_STATE,
67
	                "Restore the last Taxon Navigator state.",
68
	                getFieldEditorParent()));
69
	      addField(new BooleanFieldEditor(IPreferenceKeys.IS_DEBUG_MODE,
70
                  "Run Taxonomic Editor in Debug Mode.",
71
                  getFieldEditorParent()));
72
	}
73

    
74
	/*
75
	 * (non-Javadoc)
76
	 *
77
	 * @see
78
	 * org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
79
	 */
80
	@Override
81
	public void init(IWorkbench workbench) {
82
		setPreferenceStore(PreferencesUtil.getPreferenceStore());
83
	}
84

    
85
}
(20-20/23)