Revision 84bff3eb
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/operation/RemotingCdmUpdateOperation.java | ||
---|---|---|
24 | 24 |
import eu.etaxonomy.cdm.api.application.CdmChangeEvent.Action; |
25 | 25 |
import eu.etaxonomy.cdm.api.service.UpdateResult; |
26 | 26 |
|
27 |
|
|
28 | 27 |
/** |
29 | 28 |
* @author cmathew |
30 | 29 |
* @date 16 Jun 2015 |
31 |
* |
|
32 | 30 |
*/ |
33 | 31 |
public abstract class RemotingCdmUpdateOperation extends RemotingCdmOperation { |
34 | 32 |
|
... | ... | |
39 | 37 |
protected MPart activePart = null; |
40 | 38 |
protected MApplication application = null; |
41 | 39 |
|
42 |
/** |
|
43 |
* @param label |
|
44 |
*/ |
|
45 | 40 |
public RemotingCdmUpdateOperation(String label, Action action, Object source, boolean async, |
46 | 41 |
EPartService partService, |
47 | 42 |
MPart activePart, |
... | ... | |
57 | 52 |
|
58 | 53 |
} |
59 | 54 |
|
60 |
/* (non-Javadoc) |
|
61 |
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmOperation#doExecute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable) |
|
62 |
*/ |
|
63 | 55 |
@Override |
64 | 56 |
protected boolean doExecute(IProgressMonitor monitor, IAdaptable info) { |
65 | 57 |
updateResult = new UpdateResult(); |
... | ... | |
85 | 77 |
if(success && updateResult != null) { |
86 | 78 |
fireDataChangeEvent(updateResult); |
87 | 79 |
} |
88 |
|
|
89 | 80 |
} |
90 | 81 |
|
91 |
/* (non-Javadoc) |
|
92 |
* @see eu.etaxonomy.taxeditor.operation.RemotingCdmOperation#onComplete(boolean) |
|
93 |
*/ |
|
94 | 82 |
@Override |
95 | 83 |
protected IStatus onComplete(boolean success) { |
96 | 84 |
|
... | ... | |
139 | 127 |
} |
140 | 128 |
return null; |
141 | 129 |
} |
142 |
|
|
143 |
|
|
144 | 130 |
} |
Also available in: Unified diff
cleanup