Merged refactoring from development branch.
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / newWizard / NewReferenceWizard.java
similarity index 86%
rename from taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/newWizard/NewReferenceWizard.java
rename to taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewReferenceWizard.java
index 351d9e5f6a1005052a404049ad6a179b1a35daf1..91131aa736c68df006757c12a102602751695de1 100644 (file)
@@ -8,13 +8,13 @@
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
 
-package eu.etaxonomy.taxeditor.editor.newWizard;
+package eu.etaxonomy.taxeditor.newWizard;
 
 import eu.etaxonomy.cdm.api.service.IReferenceService;
 import eu.etaxonomy.cdm.model.reference.Reference;
 import eu.etaxonomy.cdm.model.reference.ReferenceFactory;
-import eu.etaxonomy.taxeditor.section.reference.ReferenceWizardPage;
 import eu.etaxonomy.taxeditor.store.CdmStore;
+import eu.etaxonomy.taxeditor.ui.section.reference.ReferenceWizardPage;
 
 /**
  * <p>NewReferenceWizard class.</p>
@@ -32,7 +32,7 @@ public class NewReferenceWizard extends AbstractNewEntityWizard<Reference> {
        public void addPages() {
                // TODO disabling external service wizard page for now
 //             addPage(new ExternalReferenceServiceWizardPage(formFactory, getConversationHolder(), entity));
-               referencePage = new ReferenceWizardPage(formFactory, getConversationHolder(), entity);
+               referencePage = new ReferenceWizardPage(formFactory, getConversationHolder(), getEntity());
                addPage(referencePage);
        }
 
@@ -45,7 +45,7 @@ public class NewReferenceWizard extends AbstractNewEntityWizard<Reference> {
        /** {@inheritDoc} */
        @Override
        protected void saveEntity() {
-               CdmStore.getService(IReferenceService.class).saveOrUpdate(entity);
+               CdmStore.getService(IReferenceService.class).saveOrUpdate(getEntity());
        }
 
        /** {@inheritDoc} */