40486bfe3444b96fc995e1ef1f50bc11c5128e49
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / preference / menu / PreservationMethodMenuPreferences.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.occurrence.PreservationMethod;
16 import eu.etaxonomy.taxeditor.store.TermStore;
17
18 /**
19 * <p>PreservationMethodMenuPreferences class.</p>
20 *
21 * @author n.hoffmann
22 * @created Jun 25, 2010
23 * @version 1.0
24 */
25 public class PreservationMethodMenuPreferences extends AbstractMenuPreferences<PreservationMethod> {
26
27 /**
28 * <p>Constructor for PreservationMethodMenuPreferences.</p>
29 */
30 public PreservationMethodMenuPreferences() {
31 super("Preservation Method Preferences",
32 "Select preservation methods to be shown in selections",
33 false);
34 }
35
36 /* (non-Javadoc)
37 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTermClass()
38 */
39 /** {@inheritDoc} */
40 @Override
41 protected Class<PreservationMethod> getTermClass() {
42 return PreservationMethod.class;
43 }
44
45 /* (non-Javadoc)
46 * @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTerms()
47 */
48 @Override
49 protected List<PreservationMethod> getTerms() {
50 return TermStore.getPreservationMethods();
51 }
52 }