[Dive4elements-commits] [PATCH 03 of 10] ExtremeCurveFacet: Add new constructor to set name to new FacetType (extreme_wq_curve_base). Data is the same
Wald Commits
scm-commit at wald.intevation.org
Fri Nov 2 12:08:46 CET 2012
# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1351853954 -3600
# Node ID 2f01b47aa5c2d80eec8bc64e7fd7d7a8335b39b6
# Parent 11cf29eb002caf6a46d05d5eee6805b088a5fd6f
ExtremeCurveFacet: Add new constructor to set name to new FacetType (extreme_wq_curve_base). Data is the same.
diff -r 11cf29eb002c -r 2f01b47aa5c2 flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Fri Nov 02 11:58:11 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/model/extreme/ExtremeCurveFacet.java Fri Nov 02 11:59:14 2012 +0100
@@ -41,6 +41,17 @@
super(0, EXTREME_WQ_CURVE, description, ComputeType.ADVANCE, null, null);
}
+ /**
+ * @param description Description of the facet.
+ * @param showBase if true, gimme different name.
+ */
+ public ExtremeCurveFacet(String description, boolean showBase) {
+ super(0, EXTREME_WQ_CURVE_BASE, description, ComputeType.ADVANCE, null, null);
+ if (!showBase) {
+ this.name = EXTREME_WQ_CURVE;
+ }
+ }
+
public ExtremeCurveFacet(int index, String description) {
super(index, EXTREME_WQ_CURVE, description, ComputeType.ADVANCE, null, null);
More information about the Dive4elements-commits
mailing list