2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.preference
;
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
;
22 * <p>DescriptionPreferences class.</p>
28 public class DescriptionPreferences
extends FieldEditorPreferencePage
implements
29 IWorkbenchPreferencePage
{
31 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.desc"{trunked}</code> */
32 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.preferences.description";
36 protected Control
createContents(Composite parent
) {
38 Composite container
= new Composite(parent
, SWT
.NULL
);
39 container
.setLayout(new GridLayout());
47 public void init(IWorkbench workbench
) {
52 protected void createFieldEditors() {
53 addField(new BooleanFieldEditor(IPreferenceKeys
.SHOW_VOCABULARY_ID_FOR_TERM_LABELS
,
54 "Show vocabulary id for term labels.",
55 getFieldEditorParent()));