changeset 5849:a0a7a8f3bd4a

Make showing of outlier facet depending on preprocessing choice.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 26 Apr 2013 11:06:55 +0200
parents 410a578cfc47
children df5d29987df8
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/fixation/FixRealizingCompute.java
diffstat 1 files changed, 7 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }

http://dive4elements.wald.intevation.org