comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/map/MapToolbar.java @ 2469:505e68d8d131

Take care on nullpointers in the MapToolbar because the info button is not always enabled. flys-client/trunk@4184 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 30 Mar 2012 06:26:30 +0000
parents 0235cdb62c98
children a1ff911e8365
comparison
equal deleted inserted replaced
2468:6a65694bdcc2 2469:505e68d8d131
202 measureControl.activate(activate); 202 measureControl.activate(activate);
203 } 203 }
204 204
205 205
206 protected void activateGetFeatureInfo(boolean activate) { 206 protected void activateGetFeatureInfo(boolean activate) {
207 if (infoButton == null) {
208 return;
209 }
210
207 if (activate) { 211 if (activate) {
208 infoButton.select(); 212 infoButton.select();
209 } 213 }
210 else { 214 else {
211 infoButton.deselect(); 215 infoButton.deselect();

http://dive4elements.wald.intevation.org