3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.operations
;
13 import org
.eclipse
.core
.commands
.operations
.IUndoContext
;
14 import org
.eclipse
.core
.runtime
.IStatus
;
16 import eu
.etaxonomy
.cdm
.api
.conversation
.IConversationEnabled
;
17 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
18 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
25 public abstract class AbstractPersistentPostOperation
extends AbstractPostOperation
{
26 private IConversationEnabled conversationEnabled
;
32 * @param postOperationEnabled
34 public AbstractPersistentPostOperation(String label
,
35 IUndoContext undoContext
, Taxon taxon
,
36 IPostOperationEnabled postOperationEnabled
) {
37 super(label
, undoContext
, taxon
, postOperationEnabled
);
38 // TODO Auto-generated constructor stub
41 public AbstractPersistentPostOperation(String label
,
42 IUndoContext undoContext
, Taxon taxon
,
43 IPostOperationEnabled postOperationEnabled
,
44 IConversationEnabled conversationEnabled
) {
45 super(label
, undoContext
, taxon
, postOperationEnabled
);
47 this.conversationEnabled
= conversationEnabled
;
50 protected IStatus
postExecute(CdmBase objectAffectedByOperation
) {
51 IStatus status
= super.postExecute(objectAffectedByOperation
);
53 if(conversationEnabled
!= null){
54 conversationEnabled
.getConversationHolder().commit(true);