2b9a5293353b9835b8b685f0c390618ae041d0d5
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / definedterm / input / NamedAreaEditorInput.java
1 // $Id$
2 /**
3 * Copyright (C) 2009 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 package eu.etaxonomy.taxeditor.editor.definedterm.input;
11
12 import java.util.Arrays;
13 import java.util.List;
14
15 import eu.etaxonomy.cdm.model.location.Continent;
16 import eu.etaxonomy.cdm.model.location.NamedArea;
17 import eu.etaxonomy.cdm.model.location.TdwgArea;
18 import eu.etaxonomy.cdm.model.location.WaterbodyOrCountry;
19
20 /**
21 * @author l.morris
22 * @date 8 Dec 2011
23 *
24 */
25 public class NamedAreaEditorInput extends AbstractDefinedTermEditorInput<NamedArea> {
26
27 private List<String> termClasses = Arrays.asList(new String[]{
28 NamedArea.class.getName(),
29 TdwgArea.class.getName(),
30 WaterbodyOrCountry.class.getName(),
31 Continent.class.getName()
32 });
33
34 /* (non-Javadoc)
35 * @see org.eclipse.ui.IEditorInput#getName()
36 */
37 @Override
38 public String getName() {
39 return "Named Area";
40 }
41
42 /* (non-Javadoc)
43 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#getTermClasses()
44 */
45 @Override
46 public List<String> getTermClasses() {
47 return termClasses;
48 }
49
50 /* (non-Javadoc)
51 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#createTermInstance()
52 */
53 @Override
54 public NamedArea createTermInstance() {
55 return NamedArea.NewInstance();
56 }
57 }