Fixes adding, editing and deleting of terms in preferences. "About the EDIT Platform...
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / preference / menu / FeatureMenuPreferences.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 package eu.etaxonomy.taxeditor.preference.menu;
10
11 import java.util.List;
12
13 import eu.etaxonomy.cdm.model.description.Feature;
14 import eu.etaxonomy.taxeditor.store.TermStore;
15
16 /**
17 * <p>FeatureMenuPreferences class.</p>
18 *
19 * @author p.ciardelli
20 * @author n.hoffmann
21 * @created 17.09.2008
22 * @version 1.0
23 */
24 public class FeatureMenuPreferences extends AbstractMenuPreferences<Feature> {
25
26 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.preferences.feat"{trunked}</code> */
27 public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.preferences.feature";
28
29 /**
30 * <p>Constructor for FeatureMenuPreferences.</p>
31 */
32 public FeatureMenuPreferences() {
33 super("Feature Preferences",
34 "Choose which features you would like to use for descriptive elements.",
35 true);
36 }
37
38 /* (non-Javadoc)
39 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTermClass()
40 */
41 /** {@inheritDoc} */
42 @Override
43 protected Class<Feature> getTermClass() {
44 return Feature.class;
45 }
46
47 /* (non-Javadoc)
48 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTerms()
49 */
50 @Override
51 protected List<Feature> getTerms() {
52 return TermStore.getFeatures();
53 }
54 }