3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.newWizard
;
13 import eu
.etaxonomy
.cdm
.api
.service
.IAgentService
;
14 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
15 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
16 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.InstitutionWizardPage
;
20 * @created Dec 15, 2010
23 public class NewInstitutionWizard
extends AbstractNewEntityWizard
<Institution
> {
26 * @see org.eclipse.jface.wizard.Wizard#addPages()
29 public void addPages() {
30 addPage(new InstitutionWizardPage(formFactory
, getConversationHolder(), getEntity()));
34 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
37 protected void saveEntity() {
38 CdmStore
.getService(IAgentService
.class).saveOrUpdate(getEntity());
42 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
45 protected Institution
createNewEntity() {
46 return Institution
.NewInstance();
50 protected String
getEntityName() {