Now works with cdmLibrary 0.2.5.
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor.prototype1 / src / eu / etaxonomy / taxeditor / prototype1 / controller / DeleteNameAction.java
1 package eu.etaxonomy.taxeditor.prototype1.controller;
2
3 import org.eclipse.jface.action.Action;
4
5 import eu.etaxonomy.taxeditor.prototype1.Activator;
6 import eu.etaxonomy.cdm.model.name.TaxonName;
7
8 public class DeleteNameAction extends Action {
9
10 private TaxonName tn;
11
12 public DeleteNameAction(TaxonName tn) {
13 this.tn = tn;
14 }
15
16 public void run() {
17 Activator.getDefault().getObjectList().remove(tn);
18 }
19 }