Revision d34abf30
Added by Andreas Müller over 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/NavigationUtil.java | ||
---|---|---|
10 | 10 |
package eu.etaxonomy.taxeditor.navigation; |
11 | 11 |
|
12 | 12 |
import java.util.HashMap; |
13 |
import java.util.HashSet; |
|
13 | 14 |
import java.util.Map; |
14 | 15 |
import java.util.Set; |
15 | 16 |
import java.util.UUID; |
... | ... | |
289 | 290 |
}else if(selection instanceof Synonym){ |
290 | 291 |
Synonym synonym = (Synonym) selection; |
291 | 292 |
|
292 |
handleOpeningOfMultipleTaxa(synonym.getAcceptedTaxa()); |
|
293 |
Set<Taxon> accTaxa = new HashSet<Taxon>(); |
|
294 |
if (synonym.getAcceptedTaxon() != null){ |
|
295 |
accTaxa.add(synonym.getAcceptedTaxon()); |
|
296 |
} |
|
297 |
handleOpeningOfMultipleTaxa(accTaxa); |
|
293 | 298 |
|
294 | 299 |
}else{ |
295 | 300 |
MessagingUtils.warningDialog("Not implemented yet", NavigationUtil.class, "You chose to open a name that has no connection to a taxon. The Editor does not support editing of such a content type at the moment."); |
Also available in: Unified diff
ref #5974 Remove synonym relationships (compiling)