comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/ProjectList.java @ 1493:07b9404d7170

Removed unused method calls. flys-client/trunk@3583 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 04 Jan 2012 14:13:26 +0000
parents bc06a671ef60
children 98123d34529b
comparison
equal deleted inserted replaced
1492:7a1ac903a524 1493:07b9404d7170
530 530
531 protected void updateUserCollections() { 531 protected void updateUserCollections() {
532 GWT.log("==> ProjectList updates user collections!"); 532 GWT.log("==> ProjectList updates user collections!");
533 533
534 Config config = Config.getInstance(); 534 Config config = Config.getInstance();
535 String url = config.getServerUrl();
536 String locale = config.getLocale(); 535 String locale = config.getLocale();
537 536
538 userCollectionsService.getUserCollections(url, locale, user.identifier(), 537 userCollectionsService.getUserCollections(locale, user.identifier(),
539 new AsyncCallback<Collection[]>() { 538 new AsyncCallback<Collection[]>() {
540 public void onFailure(Throwable caught) { 539 public void onFailure(Throwable caught) {
541 String msg = caught.getMessage(); 540 String msg = caught.getMessage();
542 541
543 try { 542 try {
763 return uuid; 762 return uuid;
764 } 763 }
765 764
766 765
767 protected void cloneArtifact(String uuid) { 766 protected void cloneArtifact(String uuid) {
768 Config config = Config.getInstance(); 767 Config config = Config.getInstance();
769 final String url = config.getServerUrl(); 768 final String locale = config.getLocale();
770 final String locale = config.getLocale();
771 769
772 Recommendation recommendation = new Recommendation( 770 Recommendation recommendation = new Recommendation(
773 "winfo", 771 "winfo",
774 null, 772 null,
775 uuid, 773 uuid,
815 ); 813 );
816 } 814 }
817 815
818 816
819 protected void addArtifactToCollection(Artifact a, Collection c) { 817 protected void addArtifactToCollection(Artifact a, Collection c) {
820 Config config = Config.getInstance(); 818 Config config = Config.getInstance();
821 final String url = config.getServerUrl(); 819 final String locale = config.getLocale();
822 final String locale = config.getLocale();
823 820
824 addArtifactService.add( 821 addArtifactService.add(
825 c, a, locale, 822 c, a, locale,
826 new AsyncCallback<Collection>() { 823 new AsyncCallback<Collection>() {
827 public void onFailure(Throwable caught) { 824 public void onFailure(Throwable caught) {

http://dive4elements.wald.intevation.org