3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.editor
.definedterm
.input
;
12 import java
.util
.Arrays
;
13 import java
.util
.List
;
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
;
25 public class NamedAreaEditorInput
extends AbstractDefinedTermEditorInput
<NamedArea
> {
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()
35 * @see org.eclipse.ui.IEditorInput#getName()
38 public String
getName() {
43 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#getTermClasses()
46 public List
<String
> getTermClasses() {
51 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#createTermInstance()
54 public NamedArea
createTermInstance() {
55 return NamedArea
.NewInstance();