minor
authorKatja Luther <k.luther@bgbm.org>
Tue, 19 Jun 2018 09:47:00 +0000 (11:47 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 19 Jun 2018 09:47:00 +0000 (11:47 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java

index 919ea5f85cac53b45392b845f35a66379611c1ac..26789210e5ad4ad4cf1db2e19f37eaa967ca4ca5 100644 (file)
@@ -672,7 +672,8 @@ public abstract class AbstractUtility {
             final int pollInterval,
             final boolean cancelable,
             final IPostMoniteredOperationEnabled postOp,
-            final IFeedbackGenerator feedbackGenerator) {
+            final IFeedbackGenerator feedbackGenerator,
+            final boolean showResult) {
 
        try{
                // get the remoting monitor the first time to make sure that the
@@ -702,6 +703,7 @@ public abstract class AbstractUtility {
                         return new Status(Status.ERROR, TaxeditorStorePlugin.PLUGIN_ID, "Operation Interrupted", ex);
                     }
                     final StringBuilder reportSb = new StringBuilder();
+
                     // collect reports
 //                         for(String report : remotingMonitor.getResult()) {
                     if (remotingMonitor.getResult() instanceof ExportResult) {
@@ -715,7 +717,7 @@ public abstract class AbstractUtility {
                         }
                     }
 //                         }
-                    if(!StringUtils.isBlank(reportSb.toString()) && reportSb.length() != 0) {
+                    if(showResult && !StringUtils.isBlank(reportSb.toString()) && reportSb.length() != 0) {
                         Display.getDefault().asyncExec(new Runnable() {
                             @Override
                             public void run() {