Changeset 30315 in osm for applications/editors/josm/plugins/smed2/src/panels/PanelMain.java
- Timestamp:
- 2014-03-02T12:17:41+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed2/src/panels/PanelMain.java
r30314 r30315 19 19 import java.awt.image.BufferedImage; 20 20 import java.io.*; 21 import java.util.ArrayList; 21 22 22 23 import javax.imageio.ImageIO; … … 27 28 import org.openstreetmap.josm.Main; 28 29 30 import s57.S57val.AttVal; 29 31 import s57.S57att.*; 30 32 import s57.S57obj.*; … … 175 177 for (Obj obj : feature.objs.keySet()) { 176 178 decode.append("\t\t" + Messages.getString(obj.name()) + "\n"); 177 /* if (feature.aggr.objs.get(obj).size() != 0) {179 if (feature.objs.get(obj).size() != 0) { 178 180 for (AttMap atts : feature.objs.get(obj).values()) { 179 181 for (Att att : atts.keySet()) { … … 185 187 case L: 186 188 decode.append("\t\t\t" + Messages.getString(att.name()) + ": "); 187 Iterator<?> it = ((ArrayList<?>)item.val).iterator(); 188 while (it.hasNext()) { 189 Object val = it.next(); 189 boolean first = true; 190 for (Object val : (ArrayList<?>)item.val) { 191 if (!first) { 192 decode.append(", "); 193 } else { 194 first = false; 195 } 190 196 decode.append(Messages.getString(((Enum<?>)val).name())); 191 if (it.hasNext()) {192 decode.append(", ");193 }194 197 } 195 198 decode.append("\n"); … … 201 204 } 202 205 } 203 */}206 } 204 207 } 205 208
Note:
See TracChangeset
for help on using the changeset viewer.