[Dive4elements-commits] [PATCH 4 of 5] Make showing of outlier facet depending on preprocessing choice

Wald Commits scm-commit at wald.intevation.org
Fri Apr 26 11:06:11 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1366967215 -7200
# Node ID a0a7a8f3bd4a2f9a220e98a3c565630e15ef21bf
# Parent  410a578cfc47c615103734e36dd8cfad0256b913
Make showing of outlier facet depending on preprocessing choice.

diff -r 410a578cfc47 -r a0a7a8f3bd4a artifacts/src/main/java/org/dive4elements/river/artifacts/states/fixation/FixRealizingCompute.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/fixation/FixRealizingCompute.java	Fri Apr 26 11:04:48 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/fixation/FixRealizingCompute.java	Fri Apr 26 11:06:55 2013 +0200
@@ -155,10 +155,13 @@
             FIX_REFERENCE_EVENTS_WQ,
             Resources.getMsg(meta, I18N_WQ_EVENTS, I18N_WQ_EVENTS)));
 
-        facets.add(new FixOutlierFacet(
-            0,
-            FIX_OUTLIER,
-            Resources.getMsg(meta, I18N_WQ_OUTLIER, I18N_WQ_OUTLIER)));
+
+        if (access.getPreprocessing()) {
+            facets.add(new FixOutlierFacet(
+                0,
+                FIX_OUTLIER,
+                Resources.getMsg(meta, I18N_WQ_OUTLIER, I18N_WQ_OUTLIER)));
+        }
 
         return res;
     }


More information about the Dive4elements-commits mailing list