Revision 49d3c2dd
Added by Katja Luther over 1 year ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/ExportManager.java | ||
---|---|---|
34 | 34 |
|
35 | 35 |
import eu.etaxonomy.cdm.api.application.CdmApplicationState; |
36 | 36 |
import eu.etaxonomy.cdm.api.application.ICdmRepository; |
37 |
import eu.etaxonomy.cdm.api.conversation.IConversationEnabled; |
|
38 | 37 |
import eu.etaxonomy.cdm.common.monitor.IRemotingProgressMonitor; |
39 | 38 |
import eu.etaxonomy.cdm.io.cdmLight.CdmLightExportConfigurator; |
40 | 39 |
import eu.etaxonomy.cdm.io.common.CdmDefaultExport; |
... | ... | |
127 | 126 |
+ "Please check error log for details.", e); |
128 | 127 |
} |
129 | 128 |
|
130 |
display.asyncExec(()-> { |
|
131 |
Object activePart = EventUtility.getActivePart(); |
|
132 |
if (activePart instanceof IConversationEnabled) { |
|
133 |
// terminate any open transactions |
|
134 |
IConversationEnabled conversationEnabled = (IConversationEnabled) activePart; |
|
135 |
// restarting transaction and committing it to |
|
136 |
// trigger |
|
137 |
// change listener |
|
138 |
// TODO verify correct behaviour |
|
139 |
|
|
140 |
try{ |
|
141 |
conversationEnabled.getConversationHolder() |
|
142 |
.startTransaction(); |
|
143 |
|
|
144 |
conversationEnabled.getConversationHolder() |
|
145 |
.commit(); |
|
146 |
}catch(RuntimeException e){ |
|
147 |
MessagingUtils.messageDialog("Error starting conversation handling", this, "" + |
|
148 |
"Conversation Error: "+ e); |
|
149 |
} |
|
150 |
} |
|
151 |
}); |
|
129 |
// display.asyncExec(()-> {
|
|
130 |
// Object activePart = EventUtility.getActivePart();
|
|
131 |
// if (activePart instanceof IConversationEnabled) {
|
|
132 |
// // terminate any open transactions
|
|
133 |
// IConversationEnabled conversationEnabled = (IConversationEnabled) activePart;
|
|
134 |
// // restarting transaction and committing it to
|
|
135 |
// // trigger
|
|
136 |
// // change listener
|
|
137 |
// // TODO verify correct behaviour
|
|
138 |
// |
|
139 |
// try{
|
|
140 |
// conversationEnabled.getConversationHolder()
|
|
141 |
// .startTransaction();
|
|
142 |
// |
|
143 |
// conversationEnabled.getConversationHolder()
|
|
144 |
// .commit();
|
|
145 |
// }catch(RuntimeException e){
|
|
146 |
// MessagingUtils.messageDialog("Error starting conversation handling", this, "" +
|
|
147 |
// "Conversation Error: "+ e);
|
|
148 |
// }
|
|
149 |
// }
|
|
150 |
// });
|
|
152 | 151 |
monitor.worked(10); |
153 | 152 |
|
154 | 153 |
return Status.OK_STATUS; |
Also available in: Unified diff
ref #10186: remove conversation holder