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
.IGroupService
;
14 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
15 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
16 import eu
.etaxonomy
.taxeditor
.ui
.section
.group
.GroupDetailWizardPage
;
20 * @created Mar 10, 2011
23 public class NewGroupWizard
extends AbstractNewEntityWizard
<Group
> {
25 private GroupDetailWizardPage groupPage
;
28 * @see org.eclipse.jface.wizard.Wizard#addPages()
31 public void addPages() {
32 groupPage
= new GroupDetailWizardPage(formFactory
, getConversationHolder(), getEntity());
33 super.addPage(groupPage
);
37 * @see eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard#saveEntity()
40 protected void saveEntity() {
41 CdmStore
.getService(IGroupService
.class).saveOrUpdate(getEntity());
45 * @see eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard#createNewEntity()
48 protected Group
createNewEntity() {
49 return Group
.NewInstance();