Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/FLYS.java @ 803:653ae84533e7
Read/create recommended Artifacts and add them to the current Collection.
flys-client/trunk@2350 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 18 Jul 2011 09:52:16 +0000 |
parents | cc3f481e9484 |
children | 6f65e70fa11d |
comparison
equal
deleted
inserted
replaced
802:d45ad7fd3027 | 803:653ae84533e7 |
---|---|
395 public void newArtifact(String factory) { | 395 public void newArtifact(String factory) { |
396 Config config = Config.getInstance(); | 396 Config config = Config.getInstance(); |
397 String url = config.getServerUrl(); | 397 String url = config.getServerUrl(); |
398 String locale = config.getLocale(); | 398 String locale = config.getLocale(); |
399 | 399 |
400 artifactService.create(url, locale, factory, | 400 artifactService.create(url, locale, factory, null, |
401 new AsyncCallback<Artifact>() { | 401 new AsyncCallback<Artifact>() { |
402 public void onFailure(Throwable caught) { | 402 public void onFailure(Throwable caught) { |
403 GWT.log("Could not create the new artifact."); | 403 GWT.log("Could not create the new artifact."); |
404 SC.warn(MSG.getString(caught.getMessage())); | 404 SC.warn(MSG.getString(caught.getMessage())); |
405 } | 405 } |