reintegrated 3.2.4 SNAPSHOT
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / editor / definedterm / input / ExtensionTypeEditorInput.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.common.ExtensionType;
16
17 /**
18 * @author l.morris
19 * @date 6 Jan 2012
20 *
21 */
22 public class ExtensionTypeEditorInput extends AbstractDefinedTermEditorInput<ExtensionType> {
23
24 private List<String> termClasses = Arrays.asList(new String[]{
25 ExtensionType.class.getName()
26 });
27
28 /* (non-Javadoc)
29 * @see org.eclipse.ui.IEditorInput#getName()
30 */
31 @Override
32 public String getName() {
33 return "Extension Type";
34 }
35
36 /* (non-Javadoc)
37 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#getTermClasses()
38 */
39 @Override
40 public List<String> getTermClasses() {
41 return termClasses;
42 }
43
44 /* (non-Javadoc)
45 * @see eu.etaxonomy.taxeditor.editor.definedterm.AbstractDefinedTermEditorInput#createTermInstance()
46 */
47 @Override
48 public ExtensionType createTermInstance() {
49 return ExtensionType.NewInstance();
50 }
51
52 }