Changeset 22683 in osm for applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
- Timestamp:
- 2010-08-18T19:05:24+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r22647 r22683 25 25 dlg.cbM01StyleOfMark.addItem("Sphere Buoy"); 26 26 dlg.cbM01StyleOfMark.addItem("Barrel"); 27 dlg.cbM01StyleOfMark.addItem("Float"); 27 28 dlg.cbM01StyleOfMark.addItem("Beacon"); 28 29 29 30 dlg.cbM01Kennung.removeAllItems(); 30 31 dlg.cbM01Kennung.addItem("Not set"); 32 dlg.cbM01Kennung.addItem("Fl"); 33 dlg.cbM01Kennung.addItem("Fl(2)"); 34 dlg.cbM01Kennung.addItem("Fl(3)"); 35 dlg.cbM01Kennung.addItem("Fl(4)"); 36 dlg.cbM01Kennung.addItem("Fl(5)"); 37 dlg.cbM01Kennung.addItem("Oc(2)"); 38 dlg.cbM01Kennung.addItem("Oc(3)"); 39 dlg.cbM01Kennung.addItem("Q"); 40 dlg.cbM01Kennung.addItem("IQ"); 41 dlg.cbM01Kennung.setSelectedIndex(0); 31 42 32 43 dlg.cM01Fired.setSelected(false); … … 66 77 image += "_Barrel"; 67 78 break; 79 case SPEC_FLOAT: 80 image += "_Float"; 81 break; 68 82 case SPEC_BEACON: 69 83 image += "_Beacon"; … … 85 99 86 100 dlg.cbM01Kennung.setSelectedItem(c); 87 if (dlg.cbM01Kennung.getSelectedItem() == "Not set")101 if (dlg.cbM01Kennung.getSelectedItem().equals("Not set")) 88 102 c = ""; 89 103 } … … 132 146 "seamark:buoy_special_purpose:colour", "yellow")); 133 147 break; 148 case SPEC_FLOAT: 149 super.saveSign("light_Float"); 150 Main.main.undoRedo.add(new ChangePropertyCommand(node, 151 "seamark:light_float:colour", "yellow")); 152 break; 134 153 case SPEC_BEACON: 135 154 super.saveSign("beacon_special_purpose"); … … 161 180 str = keys.get("seamark:topmark:shape"); 162 181 163 if (str. compareTo("x-shape") == 0) {182 if (str.equals("x-shape")) { 164 183 setTopMark(true); 165 184 … … 193 212 } 194 213 195 if (str. compareTo("white") == 0) {214 if (str.equals("white")) { 196 215 setFired(true); 197 216 setLightColour("W"); … … 225 244 str = keys.get("seamark:buoy_special_purpose:shape"); 226 245 227 if (str. compareTo("pillar") == 0)246 if (str.equals("pillar")) 228 247 setStyleIndex(SPEC_PILLAR); 229 else if (str. compareTo("spar") == 0)248 else if (str.equals("spar")) 230 249 setStyleIndex(SPEC_SPAR); 231 else if (str. compareTo("sphere") == 0)250 else if (str.equals("sphere")) 232 251 setStyleIndex(SPEC_SPHERE); 233 else if (str. compareTo("barrel") == 0)252 else if (str.equals("barrel")) 234 253 setStyleIndex(SPEC_BARREL); 235 254 else … … 239 258 if (keys.containsKey("seamark:beacon_special_purpose")) 240 259 setStyleIndex(SPEC_BEACON); 241 return ret; 260 else if (keys.containsKey("seamark:light_float") 261 && keys.containsKey("seamark:light_float:colour") 262 && keys.get("seamark:light_float:colour").equals("yellow")) 263 setStyleIndex(SPEC_FLOAT); 264 265 return ret; 242 266 } 243 267
Note:
See TracChangeset
for help on using the changeset viewer.