Project

General

Profile

Revision 4c9c08a9

ID4c9c08a97bfe26015e6e4163eb8aa59125f3b6c6
Parent e9c37045
Child 2bbdfed5

Added by Patrick Plitzner over 1 year ago

ref #8248 Set import source citation in import wizard

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/e4/in/owl/OwlImportWizard.java
22 22
import eu.etaxonomy.cdm.database.DbSchemaValidation;
23 23
import eu.etaxonomy.cdm.io.common.IImportConfigurator.SOURCE_TYPE;
24 24
import eu.etaxonomy.cdm.io.descriptive.owl.in.StructureTreeOwlImportConfigurator;
25
import eu.etaxonomy.cdm.model.reference.Reference;
26
import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
25 27
import eu.etaxonomy.taxeditor.io.e4.in.AbstractImportWizardE4;
26 28
import eu.etaxonomy.taxeditor.io.e4.in.ImportFromFileDataSourceWizardPage;
27 29
import eu.etaxonomy.taxeditor.store.CdmStore;
......
47 49
		return configurator;
48 50
	}
49 51

  
50
	/** {@inheritDoc} */
51 52
	@Override
52 53
	public boolean performFinish() {
53 54
	    URI source = dataSourcePage.getUri();
54 55
	    configurator.setSource(source);
56
        Reference reference = ReferenceFactory.newGeneric();
57
        reference.setTitle("StructureTree import from "+source);
58
        configurator.setSourceReference(reference);
55 59
	    configurator.setDbSchemaValidation(DbSchemaValidation.CREATE);
56 60
	    Job job = CdmStore.getImportManager().createIOServiceJob(configurator, new File(source), SOURCE_TYPE.URI);
57 61
	    CdmStore.getImportManager().run(job);
......
59 63
	    return true;
60 64
	}
61 65

  
62
	/** {@inheritDoc} */
63 66
	@Override
64 67
    public void init() {
65
        configurator =  CdmStore.getImportManager().OwlImportConfigurator();
68
        configurator = CdmStore.getImportManager().OwlImportConfigurator();
66 69
	}
67 70

  
68 71
	@Override
......
72 75
//		addPage(configuratorWizardPage);
73 76
	}
74 77

  
75
	/** {@inheritDoc} */
76 78
	@Override
77 79
	public void addPages() {
78 80
	    dataSourcePage = ContextInjectionFactory.make(ImportFromFileDataSourceWizardPage.class, context);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)