[PATCH 3 of 5] Do not fiddle with the factory name of recommendations for differences anymore

Wald Commits scm-commit at wald.intevation.org
Fri Jul 19 13:30:01 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1374221087 -7200
# Node ID 67b4728723dfd5ef7ea38b839809884270e95650
# Parent  03cc3bc749648dfd759b765f3549f6a10614ac47
Do not fiddle with the factory name of recommendations for differences anymore.
This fixes differences of regular winfo artifacts and I have not yet observed
side effects, as the factories from the meta-data seem to be all correct.

diff -r 03cc3bc74964 -r 67b4728723df gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Fri Jul 19 06:56:30 2013 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/DatacageTwinPanel.java	Fri Jul 19 10:04:47 2013 +0200
@@ -287,10 +287,14 @@
                 + recommendation.getIDs());
             recommendation.setFactory("staticwkms");
         }
+        /*
+        // So far, we do not need to rewrite the factory anymore,
+        // except for staticwkms; probably other cases will pop up later.
         else if (recommendation.getFactory().equals("winfo")) {
             GWT.log("Setting waterlevel factory for a winfo rec.");
             recommendation.setFactory("waterlevel");
         }
+        */
         else {
            GWT.log("Leave rec. id " + recommendation.getIDs() + ", factory "
                + recommendation.getFactory() + " untouched.");


More information about the Dive4elements-commits mailing list