Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/states/WaterlevelSelectState.java @ 1660:804c58c56422
Extracted/use StringUtil.wWrap .
flys-artifacts/trunk@2859 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 28 Sep 2011 15:37:59 +0000 |
parents | 91d038c7aae5 |
children | 8a2cbf947395 |
comparison
equal
deleted
inserted
replaced
1659:ad54896ec369 | 1660:804c58c56422 |
---|---|
129 } | 129 } |
130 catch (NumberFormatException nfe) { /* do nothing */ } | 130 catch (NumberFormatException nfe) { /* do nothing */ } |
131 | 131 |
132 String name = wqkms[idx].getName(); | 132 String name = wqkms[idx].getName(); |
133 | 133 |
134 if (name != null && name.indexOf("Q") >= 0) { | 134 return new String[] { StringUtil.wWrap(name) }; |
135 name = "W(" + name + ")"; | |
136 } | |
137 | |
138 return new String[] { name }; | |
139 } | 135 } |
140 | 136 |
141 | 137 |
142 /** | 138 /** |
143 * Validates the given String. A valid string for this state requires the | 139 * Validates the given String. A valid string for this state requires the |