Revision 70264b7f
Added by Niels Hoffmann almost 13 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java | ||
---|---|---|
138 | 138 |
|
139 | 139 |
return input; |
140 | 140 |
} |
141 |
|
|
142 |
|
|
143 |
|
|
144 |
|
|
141 |
|
|
145 | 142 |
private static TaxonEditorInput getInputForMultipleNodes(ConversationHolder conversation, Set<TaxonNode> taxonNodes){ |
146 | 143 |
if(taxonNodes.size() == 1){ |
147 | 144 |
TaxonNode taxonNode = taxonNodes.iterator().next(); |
148 | 145 |
return NewInstance(taxonNode.getUuid(), conversation); |
149 | 146 |
}else if(taxonNodes.size() > 1){ |
150 |
// FIXME implement a dialog that shows all possible taxa and let the user choose which he wants to open. |
|
151 |
EditorUtil.warningDialog("Not implemented yet", TaxonEditorInput.class, "The accepted taxon is in multiple taxonomic trees. We currently do not know which one you want to open." + |
|
152 |
" This case is not handled yet by the software."); |
|
147 |
TaxonNode taxonNode = ChooseFromMultipleTaxonNodesDialog.choose(taxonNodes); |
|
148 |
if(taxonNode != null){ |
|
149 |
return NewInstance(taxonNode.getUuid(), conversation); |
|
150 |
} |
|
153 | 151 |
}else if(taxonNodes.size() == 0){ |
154 | 152 |
// this is an undesired state |
155 |
EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not in a taxonomic view. This should not have happened.");
|
|
153 |
EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not part of any classification. This should not have happened.");
|
|
156 | 154 |
} |
157 | 155 |
return null; |
158 | 156 |
} |
Also available in: Unified diff
Taxa that are part of multiple classifications can now be edited.