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
) {
26 this.conversation
= conversation
;
32 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
35 public Object
getAdapter(Class adapter
) {
36 // TODO Auto-generated method stub
43 * @see org.eclipse.ui.IEditorInput#exists()
46 public boolean exists() {
47 return getKey() != null;
53 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
56 public ImageDescriptor
getImageDescriptor() {
57 // TODO Auto-generated method stub
64 * @see org.eclipse.ui.IEditorInput#getPersistable()
67 public IPersistableElement
getPersistable() {
68 // TODO Auto-generated method stub
75 * @see org.eclipse.ui.IEditorInput#getToolTipText()
78 public String
getToolTipText() {
85 * @see org.eclipse.ui.IEditorInput#getName()
88 public String
getName() {
89 return getKey().toString();
93 public ConversationHolder
getConversationHolder() {
97 public abstract T
getKey();
100 public void update(CdmDataChangeMap changeEvents
) {
104 * @see java.lang.Object#equals(java.lang.Object)
107 public boolean equals(Object obj
) {
108 // TODO Auto-generated method stub
109 boolean result
= super.equals(obj
);