p2izing the editor
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor.designproposal2 / src / eu / etaxonomy / taxeditor / designproposal2 / model / NameEditorInput.java
1 package eu.etaxonomy.taxeditor.designproposal2.model;
2
3 import org.eclipse.jface.resource.ImageDescriptor;
4 import org.eclipse.ui.IEditorInput;
5 import org.eclipse.ui.IPersistableElement;
6
7 //import eu.etaxonomy.cdm.model.name.TaxonName;
8
9 public class NameEditorInput implements IEditorInput {
10
11 private TaxonName taxonname;
12
13 public NameEditorInput (TaxonName taxonname) {
14 this.taxonname = taxonname;
15 }
16
17 public boolean exists() {
18 // TODO Auto-generated method stub
19 return false;
20 }
21
22 public ImageDescriptor getImageDescriptor() {
23 // TODO Auto-generated method stub
24 return null;
25 }
26
27 public String getName() {
28 return taxonname.getName();
29 }
30
31 public IPersistableElement getPersistable() {
32 // TODO Auto-generated method stub
33 return null;
34 }
35
36 public String getToolTipText() {
37 return taxonname.getName();
38 }
39
40 public Object getAdapter(Class adapter) {
41
42 if (adapter == TaxonName.class) {
43 return this.taxonname;
44 }
45
46 return null;
47 }
48
49 }