package eu.etaxonomy.taxeditor.io.wizard;
+import java.io.File;
+import java.net.MalformedURLException;
+import java.net.URI;
+import java.net.URL;
+
import org.apache.log4j.Logger;
import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.ui.IWorkbench;
*/
@Override
public boolean performFinish() {
- String file = dataSourcePage.getFile();
+ String platformDependendFile = dataSourcePage.getFile();
// AbcdImport expects a string that can be used to instantiate a URL instance
// TODO consolidate import and exports regarding what may be passed in as source
// will construct a url string for now
- file = "file://" + file;
+ File file = new File(platformDependendFile);
+ URI fileUri = file.toURI();
- configurator.setSource(file);
+ configurator.setSource(fileUri.toString());
configurator.setDbSchemaValidation(DbSchemaValidation.CREATE);
CdmStore.getImportHandler().run(configurator);
-
return true;
+
}
/* (non-Javadoc)