Changeset 22816 in osm for applications/editors/josm/plugins/toms/src/toms/seamarks/buoys
- Timestamp:
- 2010-08-27T20:38:03+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r22732 r22816 32 32 dlg.cbM01StyleOfMark.addItem("Float"); 33 33 dlg.cbM01StyleOfMark.addItem("Beacon"); 34 dlg.cbM01StyleOfMark.addItem("Tower"); 34 35 35 36 dlg.cbM01Kennung.removeAllItems(); … … 85 86 "beacon_special_purpose")) 86 87 || keys.containsKey("seamark:special_purpose_beacon:colour") 87 || keys.containsKey("seamark:special_purpose_beacon:shape")) 88 setStyleIndex(SPEC_BEACON); 89 else if (keys.containsKey("seamark:light_float:colour") 88 || keys.containsKey("seamark:special_purpose_beacon:shape")) { 89 if (keys.containsKey("seamark:special_purpose_beacon:shape") 90 && keys.get("seamark:soecial_purpose_beacon:shape").equals("tower")) 91 setStyleIndex(SPEC_TOWER); 92 else 93 setStyleIndex(SPEC_BEACON); 94 } else if (keys.containsKey("seamark:light_float:colour") 90 95 && keys.get("seamark:light_float:colour").equals("yellow")) 91 96 setStyleIndex(SPEC_FLOAT); … … 163 168 image += "_Beacon"; 164 169 break; 170 case SPEC_TOWER: 171 image += "_Tower"; 172 break; 165 173 default: 166 174 } … … 236 244 "seamark:beacon_special_purpose:colour", "yellow")); 237 245 break; 246 case SPEC_TOWER: 247 super.saveSign("beacon_special_purpose"); 248 Main.main.undoRedo.add(new ChangePropertyCommand(node, 249 "seamark:beacon_special_purpose:shape", "tower")); 250 Main.main.undoRedo.add(new ChangePropertyCommand(node, 251 "seamark:beacon_special_purpose:colour", "yellow")); 252 break; 238 253 default: 239 254 }
Note:
See TracChangeset
for help on using the changeset viewer.