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
;
19 public abstract class AbstractIdentificationEditorInput
<T
extends IIdentificationKey
>
20 implements IEditorInput
, IConversationEnabled
{
22 private final ConversationHolder conversation
;
24 protected AbstractIdentificationEditorInput(ConversationHolder conversation
) {
25 this.conversation
= conversation
;
31 * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
34 public Object
getAdapter(Class adapter
) {
35 // TODO Auto-generated method stub
42 * @see org.eclipse.ui.IEditorInput#exists()
45 public boolean exists() {
46 return getKey() != null;
52 * @see org.eclipse.ui.IEditorInput#getImageDescriptor()
55 public ImageDescriptor
getImageDescriptor() {
56 // TODO Auto-generated method stub
63 * @see org.eclipse.ui.IEditorInput#getPersistable()
66 public IPersistableElement
getPersistable() {
67 // TODO Auto-generated method stub
74 * @see org.eclipse.ui.IEditorInput#getToolTipText()
77 public String
getToolTipText() {
84 * @see org.eclipse.ui.IEditorInput#getName()
87 public String
getName() {
88 return getKey().toString();
92 public ConversationHolder
getConversationHolder() {
96 public abstract T
getKey();
99 public void update(CdmDataChangeMap changeEvents
) {