Revision eea5c6dc
Added by Niels Hoffmann almost 13 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/container/ConceptContainer.java | ||
---|---|---|
27 | 27 |
*/ |
28 | 28 |
public class ConceptContainer extends AbstractGroupedContainer<Taxon> { |
29 | 29 |
|
30 |
private TaxonRelationshipType relationshipType; |
|
30 |
private final TaxonRelationshipType relationshipType;
|
|
31 | 31 |
|
32 | 32 |
|
33 | 33 |
private ConceptContainer(TaxonNameEditor editor, AbstractGroup group, |
... | ... | |
117 | 117 |
return getTaxonBase(); |
118 | 118 |
} |
119 | 119 |
|
120 |
/**
|
|
121 |
* <p>calculateErrors</p>
|
|
120 |
/* (non-Javadoc)
|
|
121 |
* @see eu.etaxonomy.taxeditor.editor.name.container.AbstractGroupedContainer#showAnnotations()
|
|
122 | 122 |
*/ |
123 |
protected void calculateErrors() { |
|
124 |
super.calculateErrors(); |
|
125 |
|
|
126 |
nameViewer.setShowSecError(getTaxonBase()); |
|
123 |
@Override |
|
124 |
public void showAnnotations() { |
|
125 |
if(getData().getSec() == null){ |
|
126 |
getNameViewer().addAnnotation( |
|
127 |
new EditorAnnotation(0, "This taxon requires a sec. reference.")); |
|
128 |
} |
|
129 |
super.showAnnotations(); |
|
127 | 130 |
} |
128 | 131 |
|
129 | 132 |
/** {@inheritDoc} */ |
Also available in: Unified diff
Temporary fix for #2366; fixes #2368; Refactoring annotations in the name editor