Project

General

Profile

« Previous | Next » 

Revision 8d79f12e

Added by Lutz Suhrbier almost 13 years ago

Läuft bis Start eines Editors

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/TaxonEditorInput.java
14 14
import java.util.UUID;
15 15

  
16 16
import org.eclipse.jface.resource.ImageDescriptor;
17
import org.eclipse.swt.widgets.Display;
17 18
import org.eclipse.ui.IEditorInput;
18 19
import org.eclipse.ui.IMemento;
19 20
import org.eclipse.ui.IPersistableElement;
......
88 89
    	TaxonNode taxonNode = CdmStore.getService(ITaxonNodeService.class).load(taxonNodeUuid, null);
89 90
		
90 91
		if(taxonNode == null){
91
			EditorUtil.warningDialog("Not yet implemented", TaxonEditorInput.class, "Selected element is not type TaxonBase.");
92
/* RAPModify Display added */			
93
			EditorUtil.warningDialog("Not yet implemented", TaxonEditorInput.class, "Selected element is not type TaxonBase.", Display.getDefault());
92 94
			return null;
93 95
		}	
94 96
		
......
148 150
    		return NewInstance(taxonNode.getUuid(), conversation);
149 151
    	}else if(taxonNodes.size() > 1){
150 152
			// FIXME implement a dialog that shows all possible taxa and let the user choose which he wants to open.
153
    		/* RAPModify Display added */
151 154
			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.");
155
					" This case is not handled yet by the software.", Display.getDefault());
153 156
		}else if(taxonNodes.size() == 0){
154 157
			// 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.");
158
    		/* RAPModify Display added */
159
			EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "The accepted taxon is not in a taxonomic view. This should not have happened.", Display.getDefault());
156 160
		}
157 161
    	return null;
158 162
    }
......
164 168
    		return getInputForMultipleNodes(conversation, nodes);
165 169
    	}else if(taxa.size() > 1){
166 170
			// FIXME implement a dialog that shows all possible taxa and let the user choose which he wants to open.
171
    		/* RAPModify Display added */
167 172
			EditorUtil.warningDialog("Not implemented yet", TaxonEditorInput.class, "There are multiple accepted taxa for the current selection. We currently do not know which one you want to open." +
168
					" This case is not handled yet by the software.");
173
					" This case is not handled yet by the software.", Display.getDefault());
169 174
		}else if(taxa.size() == 0){
170 175
			// this is an undesired state
176
    		/* RAPModify Display added */
171 177
			EditorUtil.warningDialog("Incorrect state", TaxonEditorInput.class, "Trying to open accepted taxon for a synonym or misapplication but" +
172
					" no accepted taxa are present. This should not have happened.");
178
					" no accepted taxa are present. This should not have happened.", Display.getDefault());
173 179
		}
174 180
    	return null;
175 181
    }

Also available in: Unified diff