1 package eu
.etaxonomy
.taxeditor
.prototype1
.controller
;
3 import org
.eclipse
.jface
.action
.Action
;
5 import eu
.etaxonomy
.cdm
.api
.service
.INameService
;
6 import eu
.etaxonomy
.cdm
.model
.name
.TaxonName
;
7 import eu
.etaxonomy
.taxeditor
.prototype1
.Activator
;
9 public class CreateNameAction
extends Action
{
13 public CreateNameAction(String genus
, String spEpithet
) {
15 INameService ns
= Activator
.getDefault().getApplicationController().getNameService();
16 this.tn
= ns
.getNewTaxonName(null);
18 tn
.setSpecificEpithet(spEpithet
);
22 * @see org.eclipse.jface.action.Action#run()
26 Activator
.getDefault().getApplicationController().getNameService().saveTaxonName(tn
);
27 Activator
.getDefault().getObjectList().add(tn
);