comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelState.java @ 1665:0ebce697adcc

Fix flys/issue334 (CrossSection output shown even without calculation result). flys-artifacts/trunk@2870 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Fri, 30 Sep 2011 09:41:22 +0000
parents 71d5abde92f2
children 8d08f6641372
comparison
equal deleted inserted replaced
1664:71d5abde92f2 1665:0ebce697adcc
80 Facet csv = new DataFacet( 80 Facet csv = new DataFacet(
81 CSV, "CSV data", ComputeType.ADVANCE, hash, id); 81 CSV, "CSV data", ComputeType.ADVANCE, hash, id);
82 82
83 facets.add(wst); 83 facets.add(wst);
84 facets.add(csv); 84 facets.add(csv);
85 // Also register the CrossSectionFacet (added to respective out).
86 facets.add(new CrossSectionFacet(winfo.getCrossSectionName()));
87 // Assume to be in wq_single mode.
88 // TODO: Use createWTitle for label.
89 facets.add(new CrossSectionWaterLineFacet("Q=" +
90 winfo.getDataAsString("wq_single")));
85 } 91 }
86 92
87 if (res.getReport().hasProblems()) { 93 if (res.getReport().hasProblems()) {
88 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id)); 94 facets.add(new ReportFacet(ComputeType.ADVANCE, hash, id));
89 } 95 }
90 96
91 // Also register the CrossSectionFacet (added to respective out).
92 facets.add(new CrossSectionFacet(winfo.getCrossSectionName()));
93 // Assume to be in wq_single mode.
94 facets.add(new CrossSectionWaterLineFacet("Q=" + winfo.getDataAsString("wq_single")));
95 return res; 97 return res;
96 } 98 }
97 99
98 100
99 public static String createWTitle(CallContext cc, String name, boolean isQ) { 101 public static String createWTitle(CallContext cc, String name, boolean isQ) {

http://dive4elements.wald.intevation.org