Mercurial > dive4elements > river
diff flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java @ 215:e02f50a3ad59
Improved the exception handling of artifact / collection specific operations. Warning dialog are displayed after such an exception.
flys-client/trunk@1657 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 08 Apr 2011 08:51:28 +0000 |
parents | b92281182c6b |
children | a4a68b4ee2a3 |
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Fri Apr 08 08:45:15 2011 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/ParameterList.java Fri Apr 08 08:51:28 2011 +0000 @@ -7,6 +7,7 @@ import com.google.gwt.user.client.rpc.AsyncCallback; import com.smartgwt.client.types.VerticalAlignment; +import com.smartgwt.client.util.SC; import com.smartgwt.client.widgets.Canvas; import com.smartgwt.client.widgets.layout.HLayout; import com.smartgwt.client.widgets.layout.VLayout; @@ -210,7 +211,7 @@ new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not create the new artifact."); - GWT.log(caught.getMessage()); + SC.warn(MSG.getString(caught.getMessage())); } public void onSuccess(Artifact artifact) { @@ -220,7 +221,7 @@ new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not feed the artifact."); - GWT.log(caught.getMessage()); + SC.warn(caught.getMessage()); } public void onSuccess(Artifact artifact) { @@ -348,7 +349,7 @@ new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not feed the artifact."); - GWT.log(caught.getMessage()); + SC.warn(MSG.getString(caught.getMessage())); } public void onSuccess(Artifact artifact) { @@ -373,7 +374,7 @@ new AsyncCallback<Artifact>() { public void onFailure(Throwable caught) { GWT.log("Could not go back to '" + target + "'"); - GWT.log(caught.getMessage()); + SC.warn(MSG.getString(caught.getMessage())); } public void onSuccess(Artifact artifact) {