Merged refactoring from development branch.
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / newWizard / NewTeamWizard.java
similarity index 83%
rename from taxeditor-editor/src/main/java/eu/etaxonomy/taxeditor/editor/newWizard/NewTeamWizard.java
rename to taxeditor-store/src/main/java/eu/etaxonomy/taxeditor/newWizard/NewTeamWizard.java
index 958e418dacbb901b05a9ba5e5ea09754ee9fb23d..4e50f0c6b8fcc706b27bb319e13ed595dbea6866 100644 (file)
@@ -8,12 +8,12 @@
 * 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.IAgentService;
 import eu.etaxonomy.cdm.model.agent.Team;
-import eu.etaxonomy.taxeditor.section.agent.TeamWizardPage;
 import eu.etaxonomy.taxeditor.store.CdmStore;
+import eu.etaxonomy.taxeditor.ui.section.agent.TeamWizardPage;
 
 /**
  * <p>NewTeamWizard class.</p>
@@ -27,7 +27,7 @@ public class NewTeamWizard extends AbstractNewEntityWizard<Team> {
        /** {@inheritDoc} */
        @Override
        public void addPages() {
-               addPage(new TeamWizardPage(formFactory, getConversationHolder(), entity));
+               addPage(new TeamWizardPage(formFactory, getConversationHolder(), getEntity()));
        }
        
        /* (non-Javadoc)
@@ -42,6 +42,6 @@ public class NewTeamWizard extends AbstractNewEntityWizard<Team> {
        /** {@inheritDoc} */
        @Override
        protected void saveEntity() {
-               CdmStore.getService(IAgentService.class).saveOrUpdate(entity);
+               CdmStore.getService(IAgentService.class).saveOrUpdate(getEntity());
        }
 }