1a386579920b7eb357b0c627561930c25351c9e0
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / actions / cdm / DeleteNameRelationAction.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.taxeditor.actions.cdm;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.jface.action.Action;
14
15 import eu.etaxonomy.cdm.model.name.NameRelationship;
16 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
17
18 /**
19 * @author p.ciardelli
20 * @created 06.06.2008
21 * @version 1.0
22 */
23 public class DeleteNameRelationAction extends Action {
24 private static final Logger logger = Logger
25 .getLogger(DeleteNameRelationAction.class);
26
27 private TaxonNameBase name;
28 private NameRelationship relation;
29
30 public DeleteNameRelationAction(TaxonNameBase name, NameRelationship relation) {
31 this.name = name;
32 this.relation = relation;
33 }
34
35 public void run() {
36 name.removeNameRelationship(relation);
37 }
38
39 }