1 package eu
.etaxonomy
.taxeditor
.prototype1
.model
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.ui
.IEditorInput
;
5 import org
.eclipse
.ui
.IPersistableElement
;
6 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
8 public class NameEditorInput
implements IEditorInput
{
10 private TaxonName taxonname
;
12 public NameEditorInput (TaxonName taxonname
) {
13 this.taxonname
= taxonname
;
16 public boolean exists() {
17 // TODO Auto-generated method stub
21 public ImageDescriptor
getImageDescriptor() {
22 // TODO Auto-generated method stub
26 public String
getName() {
27 return taxonname
.getName();
30 public IPersistableElement
getPersistable() {
31 // TODO Auto-generated method stub
35 public String
getToolTipText() {
36 return taxonname
.getName();
39 public Object
getAdapter(Class adapter
) {
41 if (adapter
== TaxonName
.class) {
42 return this.taxonname
;