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
.IGroupService
;
13 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
14 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
15 import eu
.etaxonomy
.taxeditor
.ui
.section
.group
.GroupDetailWizardPage
;
19 * @created Mar 10, 2011
22 public class NewGroupWizard
extends AbstractNewEntityWizard
<Group
> {
24 private GroupDetailWizardPage groupPage
;
27 * @see org.eclipse.jface.wizard.Wizard#addPages()
30 public void addPages() {
31 groupPage
= new GroupDetailWizardPage(formFactory
, getConversationHolder(), getEntity());
32 super.addPage(groupPage
);
36 * @see eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard#saveEntity()
39 protected void saveEntity() {
40 CdmStore
.getService(IGroupService
.class).merge(getEntity(), true);
45 * @see eu.etaxonomy.taxeditor.newWizard.AbstractNewEntityWizard#createNewEntity()
48 protected Group
createNewEntity() {
49 return Group
.NewInstance();
53 protected String
getEntityName() {