2 * Copyright (C) 2014 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.
9 package eu
.etaxonomy
.taxeditor
.newWizard
;
11 import eu
.etaxonomy
.cdm
.api
.service
.molecular
.IAmplificationService
;
12 import eu
.etaxonomy
.cdm
.model
.molecular
.Amplification
;
13 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
20 public class NewAmplificationWizard
extends AbstractNewEntityWizard
<Amplification
> {
22 private AmplificationGeneralWizardPage amplificationGeneralPage
;
26 public void addPages() {
27 amplificationGeneralPage
= new AmplificationGeneralWizardPage(formFactory
, getEntity());
28 addPage(amplificationGeneralPage
);
33 protected Amplification
createNewEntity() {
34 return Amplification
.NewInstance();
39 protected void saveEntity() {
40 CdmStore
.getService(IAmplificationService
.class).merge(getEntity(), true);
46 public void setEntity(Amplification entity
) {
47 super.setEntity(entity
);
48 amplificationGeneralPage
.getDetailElement().setEntity(entity
);
52 protected String
getEntityName() {
53 return "Amplification";