2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.taxeditor
.newWizard
;
12 import eu
.etaxonomy
.cdm
.api
.service
.IAgentService
;
13 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
14 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
15 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.InstitutionWizardPage
;
19 * @created Dec 15, 2010
22 public class NewInstitutionWizard
extends AbstractNewEntityWizard
<Institution
> {
25 * @see org.eclipse.jface.wizard.Wizard#addPages()
28 public void addPages() {
29 addPage(new InstitutionWizardPage(formFactory
, getConversationHolder(), getEntity()));
33 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
36 protected void saveEntity() {
37 CdmStore
.getService(IAgentService
.class).merge(getEntity(), true);
41 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
44 protected Institution
createNewEntity() {
45 return Institution
.NewInstance();
49 protected String
getEntityName() {