Revision 340162f2
Added by Niels Hoffmann about 13 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/AbstractIdentificationEditorInput.java | ||
---|---|---|
14 | 14 |
|
15 | 15 |
/** |
16 | 16 |
* @author n.hoffmann |
17 |
* |
|
17 |
*
|
|
18 | 18 |
*/ |
19 |
public abstract class AbstractIdentificationEditorInput<T extends IIdentificationKey> implements IEditorInput, IConversationEnabled { |
|
19 |
public abstract class AbstractIdentificationEditorInput<T extends IIdentificationKey> |
|
20 |
implements IEditorInput, IConversationEnabled { |
|
20 | 21 |
|
21 |
private ConversationHolder conversation; |
|
22 |
private final ConversationHolder conversation;
|
|
22 | 23 |
|
23 |
protected AbstractIdentificationEditorInput(ConversationHolder conversation){ |
|
24 |
protected AbstractIdentificationEditorInput(ConversationHolder conversation) {
|
|
24 | 25 |
this.conversation = conversation; |
25 | 26 |
} |
26 |
|
|
27 |
/* (non-Javadoc) |
|
27 |
|
|
28 |
/* |
|
29 |
* (non-Javadoc) |
|
30 |
* |
|
28 | 31 |
* @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class) |
29 | 32 |
*/ |
30 | 33 |
@Override |
... | ... | |
33 | 36 |
return null; |
34 | 37 |
} |
35 | 38 |
|
36 |
/* (non-Javadoc) |
|
39 |
/* |
|
40 |
* (non-Javadoc) |
|
41 |
* |
|
37 | 42 |
* @see org.eclipse.ui.IEditorInput#exists() |
38 | 43 |
*/ |
39 | 44 |
@Override |
... | ... | |
41 | 46 |
return getKey() != null; |
42 | 47 |
} |
43 | 48 |
|
44 |
/* (non-Javadoc) |
|
49 |
/* |
|
50 |
* (non-Javadoc) |
|
51 |
* |
|
45 | 52 |
* @see org.eclipse.ui.IEditorInput#getImageDescriptor() |
46 | 53 |
*/ |
47 | 54 |
@Override |
... | ... | |
50 | 57 |
return null; |
51 | 58 |
} |
52 | 59 |
|
53 |
/* (non-Javadoc) |
|
60 |
/* |
|
61 |
* (non-Javadoc) |
|
62 |
* |
|
54 | 63 |
* @see org.eclipse.ui.IEditorInput#getPersistable() |
55 | 64 |
*/ |
56 | 65 |
@Override |
... | ... | |
59 | 68 |
return null; |
60 | 69 |
} |
61 | 70 |
|
62 |
/* (non-Javadoc) |
|
71 |
/* |
|
72 |
* (non-Javadoc) |
|
73 |
* |
|
63 | 74 |
* @see org.eclipse.ui.IEditorInput#getToolTipText() |
64 | 75 |
*/ |
65 | 76 |
@Override |
66 | 77 |
public String getToolTipText() { |
67 | 78 |
return getName(); |
68 | 79 |
} |
69 |
|
|
80 |
|
|
81 |
/* |
|
82 |
* (non-Javadoc) |
|
83 |
* |
|
84 |
* @see org.eclipse.ui.IEditorInput#getName() |
|
85 |
*/ |
|
86 |
@Override |
|
87 |
public String getName() { |
|
88 |
return getKey().toString(); |
|
89 |
} |
|
90 |
|
|
70 | 91 |
@Override |
71 | 92 |
public ConversationHolder getConversationHolder() { |
72 | 93 |
return conversation; |
73 | 94 |
} |
74 | 95 |
|
75 | 96 |
public abstract T getKey(); |
76 |
|
|
97 |
|
|
77 | 98 |
@Override |
78 |
public void update(CdmDataChangeMap changeEvents) {} |
|
79 |
|
|
99 |
public void update(CdmDataChangeMap changeEvents) { |
|
100 |
} |
|
101 |
|
|
80 | 102 |
} |
Also available in: Unified diff
Link in PolytomousKeyListEditor is recognizable as such; Added a menu