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
.List
;
14 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
15 import org
.eclipse
.ui
.IEditorInput
;
16 import org
.eclipse
.ui
.IPersistableElement
;
18 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
25 public abstract class AbstractDefinedTermEditorInput
<T
extends DefinedTermBase
> implements IEditorInput
{
30 public AbstractDefinedTermEditorInput() {
35 public Object
getAdapter(Class adapter
) {
40 public boolean exists() {
45 public ImageDescriptor
getImageDescriptor() {
50 public IPersistableElement
getPersistable() {
55 public String
getToolTipText() {
62 public abstract List
<String
> getTermClasses();
64 public abstract T
createTermInstance();
66 public Class
<?
extends DefinedTermBase
> getTermClass() {
68 return createTermInstance().getClass();