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>
16 public class ZoologicalNameLabelStrategy
extends DefaultLabelStrategy
{
19 * @see eu.etaxonomy.taxeditor.editor.labels.IEditorLabelStrategy#getNameRelationTypeLabel(eu.etaxonomy.cdm.model.name.NameRelationshipType)
22 public String
getNameRelationTypeLabel(NameRelationshipType type
) {
23 if (type
.equals(NameRelationshipType
.BASIONYM())) {
24 return "original combination for";
26 return super.getNameRelationTypeLabel(type
);
30 public Image
getNameRelationTypeImage(NameRelationshipType type
) {
31 if (NameRelationshipType
.BASIONYM().equals(type
)) {
34 return super.getNameRelationTypeImage(type
);
38 * @see eu.etaxonomy.taxeditor.labels.ILabelImageStrategy#getNameRelationDescription(eu.etaxonomy.cdm.model.name.NameRelationshipType)
41 public String
getNameRelationTypeDescription(NameRelationshipType type
) {
42 if (NameRelationshipType
.BASIONYM().equals(type
)) {
43 return "Original Combination";
45 return super.getNameRelationTypeDescription(type
);