-// $Id$
/**
* Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy
+* European Distributed Institute of Taxonomy
* http://www.e-taxonomy.eu
-*
+*
* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
package eu.etaxonomy.taxeditor.preference.menu;
-import eu.etaxonomy.cdm.model.common.DefinedTerm;
+import eu.etaxonomy.cdm.model.metadata.PreferencePredicate;
+import eu.etaxonomy.cdm.model.term.TermType;
+import eu.etaxonomy.taxeditor.preference.GeneralTermPreference;
/**
* @created Jun 25, 2010
* @version 1.0
*/
-public class StageMenuPreferences extends AbstractMenuPreferences<DefinedTerm> {
-
+public class StageMenuPreferences extends GeneralTermPreference {
+
/**
* <p>Constructor for StageMenuPreferences.</p>
*/
public StageMenuPreferences() {
- super("Stage Preferences",
- "Choose stages to be shown in selection combos",
- false);
+ super();
+ setPredicate(PreferencePredicate.Stage);
+ type = TermType.Stage;
}
- /* (non-Javadoc)
- * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTermClass()
- */
- /** {@inheritDoc} */
- @Override
- protected Class<DefinedTerm> getTermClass() {
- return DefinedTerm.class;
- }
+
}