Changeset 22563 in osm
- Timestamp:
- 2010-08-04T12:07:45+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22561 r22563 581 581 582 582 // Test buoy_safewater 583 if (keys.containsKey("seamark:buoy_ safewater:shape") == true) {584 585 if (keys.containsKey("seamark:buoy_safe water:colour") == false) {583 if (keys.containsKey("seamark:buoy_water:shape") == true) { 584 585 if (keys.containsKey("seamark:buoy_safe_water:colour") == false) { 586 586 buoy = new BuoyUkn(this, "Parse-Error: No colour set"); 587 587 buoy.setNode(node); … … 589 589 } 590 590 591 str = keys.get("seamark:buoy_safe water:colour");591 str = keys.get("seamark:buoy_safe_water:colour"); 592 592 if (str.compareTo("red;white") != 0) { 593 593 buoy = new BuoyUkn(this, "Parse-Error: Invalid colour"); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
r22561 r22563 109 109 } 110 110 111 super.saveSign("buoy_safe water");111 super.saveSign("buoy_safe_water"); 112 112 113 113 switch (getStyleIndex()) { 114 114 case SAFE_PILLAR: 115 115 Main.main.undoRedo.add(new ChangePropertyCommand(node, 116 "seamark:buoy_safe water:shape", "pillar"));116 "seamark:buoy_safe_water:shape", "pillar")); 117 117 break; 118 118 case SAFE_SPAR: 119 119 Main.main.undoRedo.add(new ChangePropertyCommand(node, 120 "seamark:buoy_safe water:shape", "spar"));120 "seamark:buoy_safe_water:shape", "spar")); 121 121 break; 122 122 case SAFE_SPHERE: 123 123 Main.main.undoRedo.add(new ChangePropertyCommand(node, 124 "seamark:buoy_safe water:shape", "sphere"));124 "seamark:buoy_safe_water:shape", "sphere")); 125 125 break; 126 126 case SAFE_FLOAT: 127 127 Main.main.undoRedo.add(new ChangePropertyCommand(node, 128 "seamark:buoy_safe water:shape", "float"));128 "seamark:buoy_safe_water:shape", "float")); 129 129 break; 130 130 default: 131 131 } 132 132 Main.main.undoRedo.add(new ChangePropertyCommand(node, 133 "seamark:buoy_safe water:colour_pattern", "vertical stripes"));133 "seamark:buoy_safe_water:colour_pattern", "vertical stripes")); 134 134 Main.main.undoRedo.add(new ChangePropertyCommand(node, 135 "seamark:buoy_safe water:colour", "red;white"));135 "seamark:buoy_safe_water:colour", "red;white")); 136 136 137 137 saveTopMarkData("spherical", "red"); … … 215 215 keys = node.getKeys(); 216 216 217 if (keys.containsKey("seamark:buoy_safe water:shape")) {218 str = keys.get("seamark:buoy_safe water:shape");217 if (keys.containsKey("seamark:buoy_safe_water:shape")) { 218 str = keys.get("seamark:buoy_safe_water:shape"); 219 219 220 220 if (str.compareTo("pillar") == 0)
Note:
See TracChangeset
for help on using the changeset viewer.