had to rename the packages to make them compliant with buckminster
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / menu / StageMenuPreferences.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.preference.menu;
12
13 import java.util.List;
14
15 import eu.etaxonomy.cdm.model.description.Stage;
16 import eu.etaxonomy.taxeditor.store.TermStore;
17
18 /**
19 * <p>StageMenuPreferences class.</p>
20 *
21 * @author n.hoffmann
22 * @created Jun 25, 2010
23 * @version 1.0
24 */
25 public class StageMenuPreferences extends AbstractMenuPreferences<Stage> {
26
27 /**
28 * <p>Constructor for StageMenuPreferences.</p>
29 */
30 public StageMenuPreferences() {
31 super("Stage Preferences",
32 "Choose stages to be shown in selection combos",
33 false);
34 }
35
36 /* (non-Javadoc)
37 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTermClass()
38 */
39 /** {@inheritDoc} */
40 @Override
41 protected Class<Stage> getTermClass() {
42 return Stage.class;
43 }
44
45 /* (non-Javadoc)
46 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTerms()
47 */
48 @Override
49 protected List<Stage> getTerms() {
50 return TermStore.getStages();
51 }
52 }