Project

General

Profile

Download (2.22 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(
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.SEARCH_OPEN_RESULTS_IN_SEPARATE_WINDOWS,
58
		        "Open search results in separate windows",
59
		        getFieldEditorParent()));
60
	}
61

    
62
	/*
63
	 * (non-Javadoc)
64
	 *
65
	 * @see
66
	 * org.eclipse.ui.IWorkbenchPreferencePage#init(org.eclipse.ui.IWorkbench)
67
	 */
68
	@Override
69
	public void init(IWorkbench workbench) {
70
		setPreferenceStore(PreferencesUtil.getPreferenceStore());
71
	}
72

    
73
}
(18-18/21)