Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/CalculationSelect.java @ 2164:d548e2e13524
Added code for the simple case of "Bezugslinienverfahren" ("W auf freier Strecke").
flys-artifacts/trunk@3752 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 23 Jan 2012 16:55:42 +0000 |
parents | 4d57d456e261 |
children | 75a90d9d2024 |
comparison
equal
deleted
inserted
replaced
2163:105097966111 | 2164:d548e2e13524 |
---|---|
92 CallContext context) | 92 CallContext context) |
93 { | 93 { |
94 CallMeta meta = context.getMeta(); | 94 CallMeta meta = context.getMeta(); |
95 Element[] calcs = new Element[CALCULATIONS.length]; | 95 Element[] calcs = new Element[CALCULATIONS.length]; |
96 | 96 |
97 int i = 0; | 97 for (int i = 0; i < CALCULATIONS.length; ++i) { |
98 | 98 String calc = CALCULATIONS[i]; |
99 for (String calc: CALCULATIONS) { | 99 calcs[i] = createItem( |
100 calcs[i++] = createItem( | |
101 cr, new String[] { | 100 cr, new String[] { |
102 Resources.getMsg(meta, calc, calc), | 101 Resources.getMsg(meta, calc, calc), |
103 calc | 102 calc |
104 }); | 103 }); |
105 } | 104 } |