ref #10186 further remove ConversationHolder from TaxEditor code and some cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.printpublisher / src / main / java / eu / etaxonomy / taxeditor / printpublisher / wizard / AbstractPublishWizard.java
index c9d3281c7f23af6d2432f8c8d57b9e6304388bfa..a598e92e7bd2397310366c18ca4994744c42ff94 100644 (file)
@@ -15,14 +15,12 @@ import org.eclipse.swt.widgets.Display;
 import org.eclipse.ui.IExportWizard;
 import org.eclipse.ui.IWorkbench;
 
-import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
 import eu.etaxonomy.cdm.print.PublishConfigurator;
 import eu.etaxonomy.cdm.print.Publisher;
 import eu.etaxonomy.cdm.print.out.IPublishOutputModule;
 import eu.etaxonomy.taxeditor.model.CdmProgressMonitorAdapter;
 import eu.etaxonomy.taxeditor.model.MessagingUtils;
 import eu.etaxonomy.taxeditor.printpublisher.internal.PrintpublisherPlugin;
-import eu.etaxonomy.taxeditor.store.CdmStore;
 
 /**
  * <p>AbstractPublishWizard class.</p>
@@ -71,24 +69,25 @@ public abstract class AbstractPublishWizard extends Wizard implements IExportWiz
                        @Override
                        protected IStatus run(IProgressMonitor monitor) {
                                monitor.beginTask("Print Publisher", getConfigurator().calculateNumberOfNodes() + 1);
-                               ConversationHolder conversation = null;
+
                                try{
                                        getConfigurator().setProgressMonitor(CdmProgressMonitorAdapter.CreateMonitor(monitor));
 
                                        if(getConfigurator().isLocal()){
-                                               conversation = CdmStore.createConversation();
-                                               // we want to enforce that the session is closed and nothing is
-                                               // instantiated beneath the regular cdmlib-remote object boundaries
-                                               conversation.commit(false);
+                                           //TODO conversation not supported anymore as we use only remote
+//                                             conversation = CdmStore.createConversation();
+//                                             // we want to enforce that the session is closed and nothing is
+//                                             // instantiated beneath the regular cdmlib-remote object boundaries
+//                                             conversation.commit(false);
                                        }
 
                                        Publisher.publish(getConfigurator());
 
                                }finally{
                                        monitor.done();
-                                       if(conversation != null) {
-                        conversation.close();
-                    }
+//                                     if(conversation != null) {
+//                        conversation.close();
+//                    }
                                        Display.getDefault().asyncExec(new Runnable() {
                                                @Override
                                                public void run() {