Revision db9784f5
Added by Katja Luther about 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/e4/container/ConceptContainerE4.java | ||
---|---|---|
62 | 62 |
|
63 | 63 |
@Override |
64 | 64 |
protected void updateIcon() { |
65 |
if (isMisapplication){
|
|
65 |
if (relationship.getType().isAnyMisappliedName()){
|
|
66 | 66 |
setIcon(MISAPPLIEDNAME_ICON); |
67 | 67 |
}else if (relationship.getType().isProParte()){ |
68 | 68 |
setIcon(PRO_PARTE_SYNONYM_ICON); |
... | ... | |
171 | 171 |
@Override |
172 | 172 |
public void refresh() { |
173 | 173 |
// showNameRelations(); |
174 |
|
|
174 |
if (relationship.getType().isAnyMisappliedName()){ |
|
175 |
isMisapplication = true; |
|
176 |
}else{ |
|
177 |
isMisapplication = false; |
|
178 |
} |
|
175 | 179 |
String text; |
176 | 180 |
if (isMisapplication){ |
177 | 181 |
text = NameHelper.getDisplayNameCache(getData()); |
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/operation/ChangeConceptRelationshipTypeOperation.java | ||
---|---|---|
79 | 79 |
|
80 | 80 |
// Remove relatedTaxon and old relationship |
81 | 81 |
// FIXME since taxon relationships come in a set, which relationships are we going to delete here? |
82 |
element.removeTaxon(relatedTaxon, oldRelationshipType); |
|
82 |
// element.removeTaxon(relatedTaxon, oldRelationshipType);
|
|
83 | 83 |
monitor.worked(20); |
84 | 84 |
|
85 | 85 |
// Add new relationship |
86 | 86 |
// TODO add microcitation for misapplied name to property sheet |
87 |
relatedTaxon.addTaxonRelation(element, newRelationshipType, null, null); |
|
87 |
// relatedTaxon.addTaxonRelation(element, newRelationshipType, null, null); |
|
88 |
this.taxonRelationship.setType(newRelationshipType); |
|
88 | 89 |
monitor.worked(40); |
89 | 90 |
|
90 | 91 |
return postExecute(relatedTaxon); |
Also available in: Unified diff
fix correct icon refresh for concept relationship changes in name editor