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.taxon.TaxonRelationshipType;
|
16
|
import eu.etaxonomy.taxeditor.store.TermStore;
|
17
|
|
18
|
/**
|
19
|
* <p>TaxonRelationshipTypeMenuPreferences class.</p>
|
20
|
*
|
21
|
* @author n.hoffmann
|
22
|
* @created 25.06.2009
|
23
|
* @version 1.0
|
24
|
*/
|
25
|
public class TaxonRelationshipTypeMenuPreferences extends
|
26
|
AbstractMenuPreferences<TaxonRelationshipType> {
|
27
|
|
28
|
/**
|
29
|
* <p>Constructor for TaxonRelationshipTypeMenuPreferences.</p>
|
30
|
*/
|
31
|
public TaxonRelationshipTypeMenuPreferences() {
|
32
|
super("Taxon Relationship Type Preferences",
|
33
|
"Configure taxon relationship types",
|
34
|
false);
|
35
|
}
|
36
|
|
37
|
/* (non-Javadoc)
|
38
|
* @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTermClass()
|
39
|
*/
|
40
|
/** {@inheritDoc} */
|
41
|
@Override
|
42
|
protected Class<TaxonRelationshipType> getTermClass() {
|
43
|
return TaxonRelationshipType.class;
|
44
|
}
|
45
|
|
46
|
/* (non-Javadoc)
|
47
|
* @see eu.etaxonomy.taxeditor.preference.menu.AbstractMenuPreferences#getTerms()
|
48
|
*/
|
49
|
@Override
|
50
|
protected List<TaxonRelationshipType> getTerms() {
|
51
|
return TermStore.getTaxonRelationshipTypes();
|
52
|
}
|
53
|
|
54
|
}
|