Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/WspDatacagePanel.java @ 3521:ffbdd093da74
Fixed size for GetFeatureInfoWindow.
flys-client/trunk@5307 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Thu, 30 Aug 2012 08:59:41 +0000 |
parents | 8d38a1e097c2 |
children | ebf47e4adea5 |
comparison
equal
deleted
inserted
replaced
3520:0b576ca67cd5 | 3521:ffbdd093da74 |
---|---|
106 | 106 |
107 protected Recommendation getSelectedRecommendation() { | 107 protected Recommendation getSelectedRecommendation() { |
108 ToLoad toLoad = widget.getSelection(); | 108 ToLoad toLoad = widget.getSelection(); |
109 List<Recommendation> recoms = toLoad.toRecommendations(); | 109 List<Recommendation> recoms = toLoad.toRecommendations(); |
110 | 110 |
111 return recoms.get(0); | 111 return recoms.size() > 0 ? recoms.get(0) : null; |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 /** | 115 /** |
116 * Nothing is done in this method. It returns null, because we serve the | 116 * Nothing is done in this method. It returns null, because we serve the |