Project

General

Profile

« Previous | Next » 

Revision 8f3c6043

Added by Katja Luther almost 6 years ago

fix #7393: fix regression caused by removing cascading in relationships for new syn and concepts

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/AbstractPostTaxonOperation.java
12 12
import java.util.UUID;
13 13

  
14 14
import org.eclipse.core.commands.operations.IUndoContext;
15
import org.eclipse.e4.ui.di.UISynchronize;
15 16

  
16 17
import eu.etaxonomy.cdm.api.service.ITaxonService;
17 18
import eu.etaxonomy.cdm.model.taxon.Taxon;
......
36 37

  
37 38
    protected UUID parentNodeUuid;
38 39

  
40
    private UISynchronize sync;
41

  
42
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
43
            Taxon taxon, IPostOperationEnabled postOperationEnabled, UISynchronize sync) {
44
        this(label, undoContext, taxon, postOperationEnabled, null, sync);
45
    }
39 46

  
40 47
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
41 48
            Taxon taxon, IPostOperationEnabled postOperationEnabled) {
42
        this(label, undoContext, taxon, postOperationEnabled, null);
49
        this(label, undoContext, taxon, postOperationEnabled, null, null);
50
    }
51
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
52
            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled, UISynchronize sync) {
53
        super(label, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
54
        this.sync = sync;
43 55
    }
44 56

  
45 57
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext,
46 58
            Taxon taxon, IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
47 59
        super(label, undoContext, taxon, postOperationEnabled, cdmEntitySessionEnabled);
60

  
48 61
    }
49 62

  
50 63
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNodeDto taxonNode,
......
54 67

  
55 68
    public AbstractPostTaxonOperation(String label, IUndoContext undoContext, TaxonNodeDto taxonNode,
56 69
            IPostOperationEnabled postOperationEnabled, ICdmEntitySessionEnabled cdmEntitySessionEnabled) {
57
        this(label, undoContext, (Taxon) CdmStore.getService(ITaxonService.class).find(taxonNode.getTaxonUuid()), postOperationEnabled, cdmEntitySessionEnabled);
70
        this(label, undoContext, (Taxon) CdmStore.getService(ITaxonService.class).find(taxonNode.getTaxonUuid()), postOperationEnabled, cdmEntitySessionEnabled, null);
58 71
        this.taxonNode = taxonNode;
59 72
    }
60 73

  
......
94 107
    }
95 108

  
96 109

  
110
    public UISynchronize getSync() {
111
        return sync;
112
    }
113

  
114
    public void setSync(UISynchronize sync) {
115
        this.sync = sync;
116
    }
117

  
97 118
}

Also available in: Unified diff