Project

General

Profile

Download (1.27 KB) Statistics
| Branch: | Tag: | Revision:
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.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
/**
18
 * <p>DescriptionPreferences class.</p>
19
 *
20
 * @author p.ciardelli
21
 * @created 20.05.2008
22
 * @version 1.0
23
 */
24
public class DescriptionPreferences extends FieldEditorPreferencePage implements
25
		IWorkbenchPreferencePage {
26

    
27
	/** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.desc"{trunked}</code> */
28
	public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.description";
29

    
30
	/** {@inheritDoc} */
31
	@Override
32
    public void init(IWorkbench workbench) {
33
        setPreferenceStore(PreferencesUtil.getPreferenceStore());
34

    
35
	}
36

    
37
	@Override
38
	protected void createFieldEditors() {
39
	    addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_VOCABULARY_ID_FOR_TERM_LABELS,
40
	            "Show vocabulary id for term labels.",
41
                getFieldEditorParent()));
42
	}
43
}
(6-6/24)