Revision ff27466a
Added by Patrick Plitzner almost 10 years ago
- added missing @Override annotation
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/labels/DefaultLabelStrategy.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.labels; |
5 | 5 |
|
... | ... | |
23 | 23 |
* @see eu.etaxonomy.taxeditor.editor.labels.IEditorLabelStrategy#getNameRelationTypeLabel(eu.etaxonomy.cdm.model.name.NameRelationshipType) |
24 | 24 |
*/ |
25 | 25 |
/** {@inheritDoc} */ |
26 |
public String getNameRelationTypeLabel(NameRelationshipType type) { |
|
27 |
List<NameRelationshipType> vocab = |
|
26 |
@Override |
|
27 |
public String getNameRelationTypeLabel(NameRelationshipType type) { |
|
28 |
List<NameRelationshipType> vocab = |
|
28 | 29 |
TermStore.getTerms(NameRelationshipType.class); |
29 |
|
|
30 |
|
|
30 | 31 |
for (NameRelationshipType type1 : vocab) { |
31 | 32 |
if (type1.equals(type)) { |
32 | 33 |
return type1.getLabel(); |
... | ... | |
34 | 35 |
} |
35 | 36 |
return ""; |
36 | 37 |
} |
37 |
|
|
38 |
|
|
38 | 39 |
/* (non-Javadoc) |
39 | 40 |
* @see eu.etaxonomy.taxeditor.editor.labels.IEditorLabelStrategy#getNameRelationInverseTypeLabel(eu.etaxonomy.cdm.model.name.NameRelationshipType) |
40 | 41 |
*/ |
41 | 42 |
/** {@inheritDoc} */ |
42 |
public String getNameRelationTypeInverseLabel(NameRelationshipType type) { |
|
43 |
|
|
44 |
List<NameRelationshipType> vocab = |
|
43 |
@Override |
|
44 |
public String getNameRelationTypeInverseLabel(NameRelationshipType type) { |
|
45 |
|
|
46 |
List<NameRelationshipType> vocab = |
|
45 | 47 |
TermStore.getTerms(NameRelationshipType.class); |
46 | 48 |
|
47 | 49 |
for (NameRelationshipType type1 : vocab) { |
... | ... | |
56 | 58 |
* @see eu.etaxonomy.taxeditor.editor.labels.ILabelImageStrategy#getNameRelationImage(eu.etaxonomy.cdm.model.name.NameRelationship) |
57 | 59 |
*/ |
58 | 60 |
/** {@inheritDoc} */ |
59 |
public Image getNameRelationTypeImage(NameRelationshipType type) { |
|
61 |
@Override |
|
62 |
public Image getNameRelationTypeImage(NameRelationshipType type) { |
|
60 | 63 |
if (NameRelationshipType.BASIONYM().equals(type)) { |
61 | 64 |
return ImageResources.getImage( |
62 | 65 |
ImageResources.BASIONYM_ICON); |
... | ... | |
72 | 75 |
* @see eu.etaxonomy.taxeditor.labels.ILabelImageStrategy#getNameRelationDescription(eu.etaxonomy.cdm.model.name.NameRelationshipType) |
73 | 76 |
*/ |
74 | 77 |
/** {@inheritDoc} */ |
75 |
public String getNameRelationTypeDescription(NameRelationshipType type) { |
|
78 |
@Override |
|
79 |
public String getNameRelationTypeDescription(NameRelationshipType type) { |
|
76 | 80 |
if (NameRelationshipType.BASIONYM().equals(type)) { |
77 | 81 |
return "Basionym"; |
78 | 82 |
} |
Also available in: Unified diff