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
.IPrimerService
;
12 import eu
.etaxonomy
.cdm
.model
.molecular
.Primer
;
13 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
20 public class NewPrimerWizard
extends AbstractNewEntityWizard
<Primer
> {
22 private PrimerWizardPage primerPage
;
26 public void addPages() {
27 primerPage
= new PrimerWizardPage(formFactory
, getConversationHolder(), getEntity());
33 protected Primer
createNewEntity() {
34 return Primer
.NewInstance("");
39 protected void saveEntity() {
40 CdmStore
.getService(IPrimerService
.class).merge(getEntity(),true);
46 public void setEntity(Primer entity
) {
47 super.setEntity(entity
);
48 primerPage
.getDetailElement().setEntity(entity
);
52 protected String
getEntityName() {