4 package eu
.etaxonomy
.taxeditor
.labels
;
6 import org
.eclipse
.swt
.graphics
.Image
;
8 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationshipType
;
11 * <p>ZoologicalNameLabelStrategy class.</p>
15 public class ZoologicalNameLabelStrategy
extends DefaultLabelStrategy
{
18 public String
getNameRelationTypeLabel(NameRelationshipType type
) {
19 if (type
.equals(NameRelationshipType
.BASIONYM())) {
20 return "original combination for";
22 return super.getNameRelationTypeLabel(type
);
26 public Image
getNameRelationTypeImage(NameRelationshipType type
) {
27 if (NameRelationshipType
.BASIONYM().equals(type
)) {
30 return super.getNameRelationTypeImage(type
);
34 public String
getNameRelationTypeDescription(NameRelationshipType type
) {
35 if (NameRelationshipType
.BASIONYM().equals(type
)) {
36 return "Original Combination";
38 return super.getNameRelationTypeDescription(type
);