Revision 25af2145
Added by Patrick Plitzner over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java | ||
---|---|---|
40 | 40 |
import org.eclipse.ui.IMemento; |
41 | 41 |
|
42 | 42 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
43 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
|
43 | 44 |
import eu.etaxonomy.cdm.api.service.IFeatureTreeService; |
44 | 45 |
import eu.etaxonomy.cdm.model.description.FeatureNode; |
45 | 46 |
import eu.etaxonomy.cdm.model.description.FeatureTree; |
47 |
import eu.etaxonomy.cdm.persistence.hibernate.CdmDataChangeMap; |
|
46 | 48 |
import eu.etaxonomy.taxeditor.model.AbstractUtility; |
47 | 49 |
import eu.etaxonomy.taxeditor.model.IContextListener; |
48 | 50 |
import eu.etaxonomy.taxeditor.model.IPartContentHasDetails; |
... | ... | |
61 | 63 |
* |
62 | 64 |
*/ |
63 | 65 |
public class FeatureTreeEditor implements ICdmEntitySessionEnabled, ModifyListener, ISelectionChangedListener, |
64 |
IE4ViewerPart, IPartContentHasDetails, IPartContentHasSupplementalData, IContextListener { |
|
66 |
IE4ViewerPart, IPartContentHasDetails, IPartContentHasSupplementalData, IContextListener, IConversationEnabled {
|
|
65 | 67 |
|
66 | 68 |
private ConversationHolder conversation; |
67 | 69 |
|
... | ... | |
178 | 180 |
return (IStructuredSelection) composite.getViewer().getSelection(); |
179 | 181 |
} |
180 | 182 |
|
183 |
/** |
|
184 |
* {@inheritDoc} |
|
185 |
*/ |
|
186 |
@Override |
|
187 |
public ConversationHolder getConversationHolder() { |
|
188 |
return conversation; |
|
189 |
} |
|
190 |
|
|
181 | 191 |
@Persist |
182 | 192 |
public void save(){ |
183 | 193 |
if (!conversation.isBound()) { |
... | ... | |
272 | 282 |
public void workbenchShutdown(IMemento memento, IProgressMonitor monitor) { |
273 | 283 |
} |
274 | 284 |
|
285 |
/** |
|
286 |
* {@inheritDoc} |
|
287 |
*/ |
|
288 |
@Override |
|
289 |
public void update(CdmDataChangeMap arg0) { |
|
290 |
} |
|
291 |
|
|
275 | 292 |
} |
Also available in: Unified diff
ref #6694 Fix potential NPE