ref #7163: restructure preferences and externalize strings in preferences
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / DescriptionPreferences.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.preference;
11
12 import org.eclipse.jface.preference.BooleanFieldEditor;
13
14 import eu.etaxonomy.taxeditor.l10n.Messages;
15 import eu.etaxonomy.taxeditor.preference.menu.FieldEditorPreferencePageE4;
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 FieldEditorPreferencePageE4 {
25
26 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.desc"{trunked}</code> */
27 public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.description"; //$NON-NLS-1$
28
29 @Override
30 protected void createFieldEditors() {
31
32 addField(new BooleanFieldEditor(PreferencesUtil.createPreferenceString(IPreferenceKeys.SHOW_VOCABULARY_ID_FOR_TERM_LABELS),
33 Messages.DescriptionPreferences_1,
34 getFieldEditorParent()));
35 }
36 }