* The contents of this file are subject to the Mozilla Public License Version 1.1
* See LICENSE.TXT at the top of this package for the full license terms.
*/
-
package eu.etaxonomy.taxeditor.printpublisher.handler;
import java.util.UUID;
import eu.etaxonomy.taxeditor.editor.e4.TaxonEditorInput;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
import eu.etaxonomy.taxeditor.printpublisher.wizard.DirectPublishingWizard;
-import eu.etaxonomy.taxeditor.store.CdmStore;
/**
- * <p>GeneratePdfHandler class.</p>
- *
* @author n.hoffmann
* @created Jul 20, 2010
*/
return null;
}
- configurator = PublishConfigurator.NewLocalInstance(CdmStore.getCurrentApplicationConfiguration());
+ //Note: was NewLocalInstance before
+ configurator = PublishConfigurator.NewRemoteInstance();
Element taxonNodeElement = getTaxonNodeElement((TaxonEditorInput) input);
configurator.addSelectedTaxonNodeElements(taxonNodeElement);
import org.eclipse.swt.widgets.Text;
import org.jdom.Element;
-import eu.etaxonomy.cdm.api.application.ICdmRepository;
import eu.etaxonomy.cdm.print.IXMLEntityFactory;
import eu.etaxonomy.cdm.print.PublishConfigurator;
import eu.etaxonomy.cdm.print.XMLHelper;
import eu.etaxonomy.cdm.print.XMLHelper.EntityType;
import eu.etaxonomy.taxeditor.model.CdmProgressMonitorAdapter;
import eu.etaxonomy.taxeditor.model.MessagingUtils;
-import eu.etaxonomy.taxeditor.printpublisher.PrintUtil;
-import eu.etaxonomy.taxeditor.store.CdmStore;
/**
* <p>SelectServiceWizardPage class.</p>
treeViewer.getControl().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
- if(CdmStore.isActive()){
- enableLocal();
- }else{
+// if(CdmStore.isActive()){
+// enableLocal();
+// }else{
enableRemote();
button_local.setEnabled(false);
- }
+// }
setControl(composite);
}
setConfigurator(PublishConfigurator.NewRemoteInstance());
getConfigurator().addOutputModule(getOutputModule());
}
-
+
+ /**
+ * @deprecated real local is not supported anymore, also the currently active
+ * database is a "remoting" database
+ */
+ @Deprecated
private void enableLocal() {
button_remote.setSelection(false);
button_local.setSelection(true);
text_serviceUrl.setEnabled(false);
- setConfigurator(PublishConfigurator.NewLocalInstance((ICdmRepository) CdmStore.getCurrentApplicationConfiguration()));
+ setConfigurator(PublishConfigurator.NewRemoteInstance());
getConfigurator().addOutputModule(getOutputModule());
refresh();
}