[PATCH] DatacageTwinPanel: Show busy-wheel when loading and adding artifacts to collection

Wald Commits scm-commit at wald.intevation.org
Mon Jul 22 11:01:21 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1374484265 -7200
# Node ID 3999162f474fb5a6bced33521f81c9ccf274c4e7
# Parent  718b0822374d87bdd6ede2c17154116b0eeedd58
DatacageTwinPanel: Show busy-wheel when loading and adding artifacts to collection.

diff -r 718b0822374d -r 3999162f474f gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Mon Jul 22 11:07:14 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Mon Jul 22 11:11:05 2013 +0200
@@ -393,6 +393,7 @@
         }
 
         // Clone new ones (and spawn statics), go forward.
+        parameterList.lockUI();
         loadArtifactService.loadMany(
             this.collection,
             toClone,
@@ -403,6 +404,7 @@
                 @Override
                 public void onFailure(Throwable caught) {
                     GWT.log("Failure of cloning with factories!");
+                    parameterList.unlockUI();
                 }
                 @Override
                 public void onSuccess(Artifact[] artifacts) {
@@ -411,6 +413,7 @@
 
                     fireStepForwardEvent(new StepForwardEvent(
                         getData(toClone, artifacts, toUse)));
+                    parameterList.unlockUI();
                 }
             });
     }


More information about the Dive4elements-commits mailing list