Revision a174673d
Added by Katja Luther about 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java | ||
---|---|---|
113 | 113 |
|
114 | 114 |
protected Object previousSelection; |
115 | 115 |
|
116 |
public Object getPreviousSelection() { |
|
117 |
return previousSelection; |
|
118 |
} |
|
119 |
|
|
120 |
public void setPreviousSelection(Object previousSelection) { |
|
121 |
this.previousSelection = previousSelection; |
|
122 |
} |
|
123 |
|
|
116 | 124 |
protected ISelectionChangedListener selectionChangedListener; |
117 | 125 |
|
118 | 126 |
public ISelectionChangedListener getSelectionChangedListener() { |
... | ... | |
188 | 196 |
Taxon accepted = ((ITaxonEditor) part).getTaxon(); |
189 | 197 |
Set<TaxonRelationship> rels = taxon.getTaxonRelations(accepted); |
190 | 198 |
|
191 |
if (rels.iterator().hasNext()){ |
|
199 |
if (rels != null && rels.iterator().hasNext()){
|
|
192 | 200 |
TaxonRelationship rel = rels.iterator().next(); |
193 | 201 |
if (rel.getType().equals(TaxonRelationshipType.MISAPPLIED_NAME_FOR()) && !rel.getFromTaxon().equals(((ITaxonEditor) part).getTaxon())){ |
194 | 202 |
viewer.setInput(rel); |
Also available in: Unified diff
better handling of updating misapplied names