Revision bda4bda9
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/AbstractIOManager.java | ||
---|---|---|
96 | 96 |
* @param importResult |
97 | 97 |
*/ |
98 | 98 |
protected void showResult(String importName, final Display display, |
99 |
IoResultBase ioResult) { |
|
99 |
IoResultBase ioResult, String successMessage) {
|
|
100 | 100 |
StringBuffer reportTextTemp = ioResult.createReport(); |
101 | 101 |
final StringBuffer reportText; |
102 | 102 |
if (StringUtils.isBlank(reportTextTemp.toString()) && ioResult instanceof ImportResult){ |
103 |
reportTextTemp.append("The import was successfull.");
|
|
103 |
reportTextTemp.append(successMessage);
|
|
104 | 104 |
//TODO: this is a workaround because the abcd import writes the report in the report part... |
105 | 105 |
ImportResult importResult = (ImportResult)ioResult; |
106 | 106 |
if (!importResult.getReports().isEmpty() && importResult.getReports().get(0) != null){ |
Also available in: Unified diff
minor