Project

General

Profile

« Previous | Next » 

Revision 707b6237

Added by Niels Hoffmann over 12 years ago

Merged with trunk

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
145 145
    	
146 146
    	return input;
147 147
    }
148

  
149

  
150

  
151

  
148
    
152 149
	private static TaxonEditorInput getInputForMultipleNodes(ConversationHolder conversation, Set<TaxonNode> taxonNodes){
153 150
    	if(taxonNodes.size() == 1){
154 151
    		TaxonNode taxonNode = taxonNodes.iterator().next();
155 152
    		return NewInstance(taxonNode.getUuid(), conversation);
156 153
    	}else if(taxonNodes.size() > 1){
157
			// FIXME implement a dialog that shows all possible taxa and let the user choose which he wants to open.
158
			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." +
159
					" This case is not handled yet by the software.");
154
			TaxonNode taxonNode = ChooseFromMultipleTaxonNodesDialog.choose(taxonNodes);
155
			if(taxonNode != null){
156
				return NewInstance(taxonNode.getUuid(), conversation);			
157
			}
160 158
		}else if(taxonNodes.size() == 0){
161 159
			// this is an undesired state
162
			EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not in a taxonomic view. This should not have happened.");
160
			EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not part of any classification. This should not have happened.");
163 161
		}
164 162
    	return null;
165 163
    }

Also available in: Unified diff