Project

General

Profile

« Previous | Next » 

Revision e4c70a06

Added by Katja Luther almost 7 years ago

show success message after import/export

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/io/AbstractIOManager.java
19 19

  
20 20
import eu.etaxonomy.cdm.api.application.ICdmRepository;
21 21
import eu.etaxonomy.cdm.common.IoResultBase;
22
import eu.etaxonomy.cdm.io.common.ExportResult;
22 23
import eu.etaxonomy.cdm.io.common.IIoConfigurator;
23 24
import eu.etaxonomy.cdm.io.common.ImportResult;
24 25
import eu.etaxonomy.taxeditor.store.CdmStore;
......
99 100
        StringBuffer reportTextTemp = ioResult.createReport();
100 101
        final StringBuffer reportText;
101 102
        if (StringUtils.isBlank(reportTextTemp.toString()) && ioResult instanceof ImportResult){
102
            //reportTextTemp.append("No update result available");
103
            reportTextTemp.append("The import was successfull.");
103 104
            //TODO: this is a workaround because the abcd import writes the report in the report part...
104 105
        	ImportResult importResult = (ImportResult)ioResult;
105 106
            if (!importResult.getReports().isEmpty() && importResult.getReports().get(0) != null){
......
113 114
            }
114 115
        }
115 116
        reportText = reportTextTemp;
116
        if (StringUtils.isBlank(reportText.toString())){ return;}
117
        if (StringUtils.isBlank(reportText.toString()) && ioResult instanceof ExportResult ){ reportText.append("The Export was succesfull.");}
117 118
        display.asyncExec(new Runnable() {
118 119

  
119 120
            @Override

Also available in: Unified diff