@@ -0,0 +1,1980 @@
+package org.openlca.app.wizards.io;%0A%0Aimport java.io.File;%0Aimport java.lang.reflect.InvocationTargetException;%0A%0Aimport org.eclipse.core.runtime.IProgressMonitor;%0Aimport org.eclipse.jface.operation.IRunnableWithProgress;%0Aimport org.eclipse.jface.viewers.IStructuredSelection;%0Aimport org.eclipse.jface.wizard.Wizard;%0Aimport org.eclipse.ui.IImportWizard;%0Aimport org.eclipse.ui.IWorkbench;%0Aimport org.openlca.app.db.Database;%0Aimport org.openlca.app.navigation.Navigator;%0Aimport org.openlca.app.resources.ImageType;%0Aimport org.openlca.core.database.IDatabase;%0Aimport org.openlca.io.csv.input.CSVImporter;%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A%0Apublic class CSVImportWizard extends Wizard implements IImportWizard %7B%0A%0A%09private Logger log = LoggerFactory.getLogger(getClass());%0A%09private FileImportPage importPage;%0A%0A%09public CSVImportWizard() %7B%0A%09%09setNeedsProgressMonitor(true);%0A%09%7D%0A%0A%09@Override%0A%09public void init(IWorkbench workbench, IStructuredSelection selection) %7B%0A%09%09setWindowTitle(%22SimaPro CSV Import%22);%0A%09%09setDefaultPageImageDescriptor(ImageType.IMPORT_ZIP_WIZARD%0A%09%09%09%09.getDescriptor());%0A%09%7D%0A%0A%09@Override%0A%09public boolean performFinish() %7B%0A%09%09File%5B%5D files = importPage.getFiles();%0A%09%09IDatabase database = Database.get();%0A%09%09if (files == null %7C%7C files.length == 0 %7C%7C database == null)%0A%09%09%09return false;%0A%09%09final CSVImporter importer = new CSVImporter(database, files);%0A%09%09try %7B%0A%09%09%09getContainer().run(true, true, new IRunnableWithProgress() %7B%0A%09%09%09%09@Override%0A%09%09%09%09public void run(final IProgressMonitor monitor)%0A%09%09%09%09%09%09throws InvocationTargetException, InterruptedException %7B%0A%09%09%09%09%09monitor.beginTask(%22Import%22, IProgressMonitor.UNKNOWN);%0A%09%09%09%09%09ImportHandler handler = new ImportHandler(monitor);%0A%09%09%09%09%09handler.run(importer);%0A%09%09%09%09%7D%0A%09%09%09%7D);%0A%09%09%09Navigator.refresh();%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09log.error(%22SimaPro CSV import failed%22, e);%0A%09%09%7D%0A%09%09return true;%0A%09%7D%0A%0A%09@Override%0A%09public void addPages() %7B%0A%09%09importPage = new FileImportPage(new String%5B%5D %7B %22csv%22 %7D, false);%0A%09%09addPage(importPage);%0A%09%7D%0A%0A%7D%0A

Add cvs import wizard