acd6f33429ca44e4376bcd7b26d5f1bc008ea159
[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 import org.eclipse.jface.preference.FieldEditorPreferencePage;
14 import org.eclipse.swt.SWT;
15 import org.eclipse.swt.layout.GridLayout;
16 import org.eclipse.swt.widgets.Composite;
17 import org.eclipse.swt.widgets.Control;
18 import org.eclipse.ui.IWorkbench;
19 import org.eclipse.ui.IWorkbenchPreferencePage;
20
21 /**
22 * <p>DescriptionPreferences class.</p>
23 *
24 * @author p.ciardelli
25 * @created 20.05.2008
26 * @version 1.0
27 */
28 public class DescriptionPreferences extends FieldEditorPreferencePage implements
29 IWorkbenchPreferencePage {
30
31 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.desc"{trunked}</code> */
32 public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.description";
33
34 /** {@inheritDoc} */
35 @Override
36 protected Control createContents(Composite parent) {
37
38 Composite container = new Composite(parent, SWT.NULL);
39 container.setLayout(new GridLayout());
40
41 //
42 return container;
43 }
44
45 /** {@inheritDoc} */
46 @Override
47 public void init(IWorkbench workbench) {
48
49 }
50
51 @Override
52 protected void createFieldEditors() {
53 addField(new BooleanFieldEditor(IPreferenceKeys.SHOW_VOCABULARY_ID_FOR_TERM_LABELS,
54 "Show vocabulary id for term labels.",
55 getFieldEditorParent()));
56 }
57 }