Project

General

Profile

Revision 5ee3fb57

ID5ee3fb5722221f764ce81ac57cf08acf56d4cbfb
Parent 75c87e6f
Child 37c60b14

Added by Patrick Plitzner almost 2 years ago

ref #7887 Refactor AbstractPostOperation.postExecute() to Object

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPersistentPostOperation.java
14 14
import org.eclipse.core.runtime.IStatus;
15 15

  
16 16
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled;
17
import eu.etaxonomy.cdm.model.common.CdmBase;
18 17
import eu.etaxonomy.cdm.persistence.dto.TaxonNodeDto;
19 18
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
20 19

  
......
108 107
	 */
109 108
	/** {@inheritDoc} */
110 109
	@Override
111
    protected IStatus postExecute(CdmBase objectAffectedByOperation) {
110
    protected IStatus postExecute(Object objectAffectedByOperation) {
112 111
		Assert.isNotNull(conversationEnabled, "Operation has to have a valid conversation attached.");
113 112

  
114 113

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostOperation.java
13 13
import org.eclipse.core.runtime.IStatus;
14 14
import org.eclipse.core.runtime.Status;
15 15

  
16
import eu.etaxonomy.cdm.model.common.CdmBase;
17 16
import eu.etaxonomy.cdm.model.common.ICdmBase;
18 17
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled;
19 18

  
......
66 65
     * @param objectAffectedByOperation the affected object. Should be <code>null</code> if not needed
67 66
     * @return a {@link org.eclipse.core.runtime.IStatus} object.
68 67
     */
69
    protected IStatus postExecute(CdmBase objectAffectedByOperation) {
68
    protected IStatus postExecute(Object objectAffectedByOperation) {
70 69

  
71 70
        if(postOperationEnabled != null){
72 71
            return postOperationEnabled.postOperation(objectAffectedByOperation) ? Status.OK_STATUS : Status.CANCEL_STATUS;

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)