1 package eu
.etaxonomy
.taxeditor
.prototype1
.controller
;
3 import org
.eclipse
.jface
.action
.Action
;
5 import eu
.etaxonomy
.taxeditor
.prototype1
.Activator
;
6 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
8 public class CreateNameAction
extends Action
{
12 public CreateNameAction(String genus
, String spEpithet
) {
13 this.tn
= new TaxonName();
14 this.tn
.setGenus(genus
);
15 this.tn
.setSpecificEpithet(spEpithet
);
16 this.tn
.setFullName(genus
+ " " + spEpithet
);
17 this.tn
.setName(genus
+ " " + spEpithet
);
21 Activator
.getDefault().getObjectList().add(tn
);