4 package eu
.etaxonomy
.taxeditor
.editor
.key
;
6 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
7 import org
.eclipse
.ui
.IEditorInput
;
8 import org
.eclipse
.ui
.IPersistableElement
;
10 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
11 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
12 import eu
.etaxonomy
.cdm
.model
.description
.IIdentificationKey
;
13 import eu
.etaxonomy
.cdm
.persistence
.hibernate
.CdmDataChangeMap
;
14 import eu
.etaxonomy
.taxeditor
.editor
.CdmEntitySessionInput
;
20 public abstract class AbstractIdentificationEditorInput
<T
extends IIdentificationKey
>
21 extends CdmEntitySessionInput
implements IEditorInput
, IConversationEnabled
{
23 private final ConversationHolder conversation
;
25 protected AbstractIdentificationEditorInput(ConversationHolder conversation
) {
27 this.conversation
= conversation
;
33 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
36 public Object
getAdapter(Class adapter
) {
37 // TODO Auto-generated method stub
44 * @see org.eclipse.ui.IEditorInput#exists()
47 public boolean exists() {
48 return getKey() != null;
54 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
57 public ImageDescriptor
getImageDescriptor() {
58 // TODO Auto-generated method stub
65 * @see org.eclipse.ui.IEditorInput#getPersistable()
68 public IPersistableElement
getPersistable() {
69 // TODO Auto-generated method stub
76 * @see org.eclipse.ui.IEditorInput#getToolTipText()
79 public String
getToolTipText() {
86 * @see org.eclipse.ui.IEditorInput#getName()
89 public String
getName() {
90 return getKey().toString();
94 public ConversationHolder
getConversationHolder() {
98 public abstract T
getKey();
101 public void update(CdmDataChangeMap changeEvents
) {
105 * @see java.lang.Object#equals(java.lang.Object)
108 public boolean equals(Object obj
) {
109 // TODO Auto-generated method stub
110 boolean result
= super.equals(obj
);