Project

General

Profile

« Previous | Next » 

Revision 7d8cee12

Added by Katja Luther over 8 years ago

fix #5261 and minor

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/ChangeAcceptedTaxonToSynonymOperation.java
91 91
		    if (!result.getExceptions().isEmpty() && result.isOk()){
92 92
		    	String separator = ", ";
93 93
			    String exceptionString = "";
94
			    int count = result.getExceptions().size();
95
			    int n = 0;
94 96
			    for (Exception exception : result.getExceptions()) {
95
		            exceptionString += exception.getLocalizedMessage()+separator;
97
			        n++;
98
		            exceptionString += exception.getLocalizedMessage();
99
		            if (n<count){
100
		                exceptionString += separator;
101
		            }
96 102
		        }
97 103

  
98
		    	MessagingUtils.informationDialog("Synonym created but taxon is not deleted.", exceptionString);
104
		    	MessagingUtils.informationDialog("Synonym created but taxon deletion not possible.", exceptionString);
99 105
		    } else if (result.isAbort() || result.isError()){
100
		    	MessagingUtils.errorDialog("Synonym could not created", null, result.toString(), TaxeditorNavigationPlugin.PLUGIN_ID, null, true);
106
		    	MessagingUtils.errorDialog("Synonym creation not possible", null, result.toString(), TaxeditorNavigationPlugin.PLUGIN_ID, null, true);
101 107
		    }
102 108
		} catch (IllegalArgumentException e) {
103 109
            MessagingUtils.errorDialog("Operation failed", this, e.getMessage(), TaxeditorNavigationPlugin.PLUGIN_ID, e, false);

Also available in: Unified diff