Revision 8e0e024c
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/MisappliedGroupE4.java | ||
---|---|---|
23 | 23 |
*/ |
24 | 24 |
public class MisappliedGroupE4 extends AbstractGroupE4{ |
25 | 25 |
|
26 |
protected enum ConceptType { |
|
27 |
Misapplication, |
|
28 |
Synonym, |
|
29 |
InvalidDesignation |
|
30 |
} |
|
31 |
|
|
26 | 32 |
public MisappliedGroupE4(TaxonNameEditorE4 editor) { |
27 | 33 |
super(editor); |
28 | 34 |
|
... | ... | |
32 | 38 |
@Override |
33 | 39 |
protected void createContainers() { |
34 | 40 |
|
35 |
for(Taxon misapplication : getEditor().getTaxon().getAllProParteSynonyms()){
|
|
36 |
ConceptContainerE4 container = new ConceptContainerE4(this, misapplication, false);
|
|
41 |
for(Taxon misapplication : getEditor().getTaxon().getAllMisappliedNames()){
|
|
42 |
ConceptContainerE4 container = new ConceptContainerE4(this, misapplication, ConceptType.Misapplication);
|
|
37 | 43 |
this.add(container); |
38 | 44 |
container.createContent(); |
39 | 45 |
} |
40 | 46 |
for(Taxon invalidDes : getEditor().getTaxon().getInvalidDesignations()){ |
41 | 47 |
|
42 |
ConceptContainerE4 container = new ConceptContainerE4(this, invalidDes, true);
|
|
48 |
ConceptContainerE4 container = new ConceptContainerE4(this, invalidDes, ConceptType.InvalidDesignation);
|
|
43 | 49 |
this.add(container); |
44 | 50 |
container.createContent(); |
45 | 51 |
} |
46 | 52 |
|
47 |
for(Taxon misapplication : getEditor().getTaxon().getAllMisappliedNames()){
|
|
53 |
for(Taxon misapplication : getEditor().getTaxon().getAllProParteSynonyms()){
|
|
48 | 54 |
|
49 |
ConceptContainerE4 container = new ConceptContainerE4(this, misapplication, true);
|
|
55 |
ConceptContainerE4 container = new ConceptContainerE4(this, misapplication, ConceptType.Synonym);
|
|
50 | 56 |
this.add(container); |
51 | 57 |
container.createContent(); |
52 | 58 |
} |
... | ... | |
62 | 68 |
private boolean redrawNeeded() { |
63 | 69 |
Set<Taxon> concepts = getEditor().getTaxon().getMisappliedNames(true); |
64 | 70 |
concepts.addAll(getEditor().getTaxon().getProParteAndPartialSynonyms()); |
65 |
|
|
71 |
concepts.addAll(getEditor().getTaxon().getInvalidDesignations()); |
|
66 | 72 |
Set<Taxon> presentConcepts = new HashSet<>(); |
67 | 73 |
|
68 | 74 |
for (AbstractGroupedContainerE4<Taxon> container : getGroupedContainers()){ |
Also available in: Unified diff
ref #7761: invalid designations are displayed in name editor and details view like MAN