Mercurial > dive4elements > river
comparison flys-client/src/main/java/de/intevation/flys/client/client/ui/DatacageTwinPanel.java @ 1392:baada4879c20
Fix clone of static artifacts for differences.
flys-client/trunk@3225 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 10 Nov 2011 14:04:03 +0000 |
parents | 9da7fdfbb80e |
children | 0d3bbe4240b1 |
comparison
equal
deleted
inserted
replaced
1391:f554dce42d66 | 1392:baada4879c20 |
---|---|
303 // TODO differentiate and merge: new clones, new, old. | 303 // TODO differentiate and merge: new clones, new, old. |
304 Recommendation firstR = r.getFirst(); | 304 Recommendation firstR = r.getFirst(); |
305 if(firstR.getIDs() != null) { | 305 if(firstR.getIDs() != null) { |
306 GWT.log("First IDs: " + firstR.getIDs() + " factory: " + firstR.getFactory()); | 306 GWT.log("First IDs: " + firstR.getIDs() + " factory: " + firstR.getFactory()); |
307 } | 307 } |
308 // TODO resolve this hack, fix datacage/recommendation for this case. | 308 if(firstR.getIDs() != null) { |
309 if(firstR.getIDs() != null && | |
310 firstR.getIDs().startsWith("flood_protection")) | |
311 { | |
312 // These do not get cloned but loaded ("spawned"). | 309 // These do not get cloned but loaded ("spawned"). |
313 firstR.setFactory("staticwkms"); | 310 firstR.setFactory("staticwkms"); |
314 } | 311 } |
315 else { | 312 else { |
316 firstR.setFactory("waterlevel"); | 313 firstR.setFactory("waterlevel"); |
317 } | 314 } |
318 Recommendation secondR = r.getSecond(); | 315 Recommendation secondR = r.getSecond(); |
319 if(secondR.getIDs() != null) { | 316 if(secondR.getIDs() != null) { |
320 GWT.log("Second IDs: " + secondR.getIDs() + " factory: " + secondR.getFactory()); | 317 GWT.log("Second IDs: " + secondR.getIDs() + " factory: " + secondR.getFactory()); |
321 } | 318 } |
322 if(secondR.getIDs() != null | 319 if (secondR.getIDs() != null) { |
323 && secondR.getIDs().startsWith("flood_protection")) | |
324 { | |
325 // These do not get cloned but loaded ("spawned"). | 320 // These do not get cloned but loaded ("spawned"). |
326 secondR.setFactory("staticwkms"); | 321 secondR.setFactory("staticwkms"); |
327 } | 322 } |
328 else { | 323 else { |
329 secondR.setFactory("waterlevel"); | 324 secondR.setFactory("waterlevel"); |