Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/client/ui/CollectionView.java @ 8717:68916dd6359b
Backout 8709:71ae18553377 Regression risk too high.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Mon, 27 Apr 2015 12:48:24 +0200 |
parents | b5ac17a10d22 |
children | e689be2a4dd1 |
comparison
equal
deleted
inserted
replaced
8716:b5ac17a10d22 | 8717:68916dd6359b |
---|---|
719 GWT.log("WARNING: Currently no recommendations."); | 719 GWT.log("WARNING: Currently no recommendations."); |
720 return; | 720 return; |
721 } | 721 } |
722 | 722 |
723 for (final Recommendation recommendation: recommendations) { | 723 for (final Recommendation recommendation: recommendations) { |
724 if (collection.loadedRecommendation(recommendation)) { | |
725 continue; | |
726 } | |
727 newRecommendations.push(recommendation); | |
728 | |
724 // XXX: UGLY! If no reference artifact given use uuid of | 729 // XXX: UGLY! If no reference artifact given use uuid of |
725 // current artifact as reference. | 730 // current artifact as reference. |
726 if (recommendation.getMasterArtifact() == null) { | 731 if (recommendation.getMasterArtifact() == null) { |
727 recommendation.setMasterArtifact(masterArtifact.getUuid()); | 732 recommendation.setMasterArtifact(masterArtifact.getUuid()); |
728 } | 733 } |
729 | 734 |
730 if (collection.loadedRecommendation(recommendation)) { | |
731 GWT.log("Already loaded " + recommendation.getDisplayName()); | |
732 continue; | |
733 } | |
734 newRecommendations.push(recommendation); | |
735 } | 735 } |
736 | 736 |
737 loadArtifactService.loadMany( | 737 loadArtifactService.loadMany( |
738 collection, | 738 collection, |
739 newRecommendations.toArray(new Recommendation[0]), | 739 newRecommendations.toArray(new Recommendation[0]), |