Revision 939829bc
Added by Patrick Plitzner about 7 years ago
eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/ChangeAcceptedTaxonToSynonymOperation.java | ||
---|---|---|
26 | 26 |
import eu.etaxonomy.cdm.model.taxon.TaxonNode; |
27 | 27 |
import eu.etaxonomy.taxeditor.model.MessagingUtils; |
28 | 28 |
import eu.etaxonomy.taxeditor.navigation.internal.TaxeditorNavigationPlugin; |
29 |
import eu.etaxonomy.taxeditor.navigation.l10n.Messages; |
|
29 | 30 |
import eu.etaxonomy.taxeditor.operation.IPostOperationEnabled; |
30 | 31 |
import eu.etaxonomy.taxeditor.session.ICdmEntitySessionEnabled; |
31 | 32 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
... | ... | |
88 | 89 |
|
89 | 90 |
|
90 | 91 |
if (!result.getExceptions().isEmpty() && result.isOk()){ |
91 |
String separator = ", "; |
|
92 |
String exceptionString = ""; |
|
92 |
String separator = ", "; //$NON-NLS-1$
|
|
93 |
String exceptionString = ""; //$NON-NLS-1$
|
|
93 | 94 |
int count = result.getExceptions().size(); |
94 | 95 |
int n = 0; |
95 | 96 |
for (Exception exception : result.getExceptions()) { |
... | ... | |
100 | 101 |
} |
101 | 102 |
} |
102 | 103 |
|
103 |
MessagingUtils.informationDialog("Synonym created but taxon deletion not possible.", exceptionString);
|
|
104 |
MessagingUtils.informationDialog(Messages.ChangeAcceptedTaxonToSynonymOperation_CREATE_SUCCESS, exceptionString);
|
|
104 | 105 |
} else if (result.isAbort() || result.isError()){ |
105 |
MessagingUtils.errorDialog("Synonym creation not possible", null, result.toString(), TaxeditorNavigationPlugin.PLUGIN_ID, null, true);
|
|
106 |
MessagingUtils.errorDialog(Messages.ChangeAcceptedTaxonToSynonymOperation_CREATE_FAIL, null, result.toString(), TaxeditorNavigationPlugin.PLUGIN_ID, null, true);
|
|
106 | 107 |
} |
107 | 108 |
} catch (IllegalArgumentException e) { |
108 |
MessagingUtils.errorDialog("Operation failed", this, e.getMessage(), TaxeditorNavigationPlugin.PLUGIN_ID, e, false);
|
|
109 |
MessagingUtils.errorDialog(Messages.ChangeAcceptedTaxonToSynonymOperation_OP_FAIL, this, e.getMessage(), TaxeditorNavigationPlugin.PLUGIN_ID, e, false);
|
|
109 | 110 |
return Status.CANCEL_STATUS; |
110 | 111 |
} |
111 | 112 |
|
Also available in: Unified diff
ref #4611 i18n for taxeditor.navigator plugin