* 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.editor.view.dataimport;
+package eu.etaxonomy.taxeditor.view.dataimport;
import java.net.MalformedURLException;
import java.net.URI;
import org.eclipse.jface.wizard.WizardPage;
import org.eclipse.swt.widgets.Composite;
+import eu.etaxonomy.cdm.ext.common.ServiceWrapperBase;
+import eu.etaxonomy.cdm.ext.occurrence.bioCase.BioCaseQueryServiceWrapper;
import eu.etaxonomy.taxeditor.view.specimenSearch.SpecimenProviderSelectionController;
private SpecimenProviderSelectionController specimenProviderSelectionController;
private URI endPoint;
+ private ServiceWrapperBase serviceWrapper;
- protected SpecimenProviderSelectionWizardPage(String pageName) {
+ public SpecimenProviderSelectionWizardPage(String pageName) {
super(pageName);
setTitle("Select Specimen Provider");
setDescription("Select the provider to query for specimens.\nTo query a BioCASE " +
public void createControl(Composite parent) {
specimenProviderSelectionController = SpecimenProviderSelectionController.getInstance(parent, getWizard());
setControl(specimenProviderSelectionController.getComposite());
+ //serviceWrapper = new BioCaseQueryServiceWrapper();
+
}
public QueryType getQueryType(){
endPoint = null;
try {
endPoint = new URL(specimenProviderSelectionController.getComposite().getTxtAccessPoint().getText()).toURI();
+ serviceWrapper = new BioCaseQueryServiceWrapper();
+ serviceWrapper.setBaseUrl(specimenProviderSelectionController.getComposite().getTxtAccessPoint().getText());
this.setErrorMessage(null);
return true;
} catch (MalformedURLException e) {
return false;
}
+ /**
+ * @return the bioCaseQueryServiceWrapper
+ */
+ public ServiceWrapperBase getQueryServiceWrapper() {
+ return serviceWrapper;
+ }
+
+ /**
+ * @param bioCaseQueryServiceWrapper the bioCaseQueryServiceWrapper to set
+ */
+ public void setQueryServiceWrapper(ServiceWrapperBase queryServiceWrapper) {
+ this.serviceWrapper = queryServiceWrapper;
+ }
+
/**
* @return
*/
}
+
+
}