cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.store / src / main / java / eu / etaxonomy / taxeditor / labels / ZoologicalNameLabelStrategy.java
1 /**
2 *
3 */
4 package eu.etaxonomy.taxeditor.labels;
5
6 import org.eclipse.swt.graphics.Image;
7
8 import eu.etaxonomy.cdm.model.name.NameRelationshipType;
9
10 /**
11 * <p>ZoologicalNameLabelStrategy class.</p>
12 *
13 * @author p.ciardelli
14 */
15 public class ZoologicalNameLabelStrategy extends DefaultLabelStrategy {
16
17 @Override
18 public String getNameRelationTypeLabel(NameRelationshipType type) {
19 if (type.equals(NameRelationshipType.BASIONYM())) {
20 return "original combination for";
21 }
22 return super.getNameRelationTypeLabel(type);
23 }
24
25 @Override
26 public Image getNameRelationTypeImage(NameRelationshipType type) {
27 if (NameRelationshipType.BASIONYM().equals(type)) {
28 return null;
29 }
30 return super.getNameRelationTypeImage(type);
31 }
32
33 @Override
34 public String getNameRelationTypeDescription(NameRelationshipType type) {
35 if (NameRelationshipType.BASIONYM().equals(type)) {
36 return "Original Combination";
37 }
38 return super.getNameRelationTypeDescription(type);
39 }
40 }