Changeset 22692 in osm for applications
- Timestamp:
- 2010-08-19T13:01:17+02:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/toms/src/toms
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22683 r22692 779 779 buoy = new BuoySaw(this, SeaMark.SAFE_WATER); 780 780 buoy.setColour(SeaMark.RED_WHITE); 781 } else if (str.equals("yellow")) { 782 buoy = new BuoySaw(this, SeaMark.SPECIAL_PURPOSE); 783 buoy.setColour(SeaMark.YELLOW); 781 784 } else { 782 785 buoy = new BuoyUkn(this, "Parse-Error: Invalid colour"); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyIsol.java
r22683 r22692 82 82 83 83 c = getLightChar(); 84 84 if (getLightGroup() != "") 85 c = c + "(" + getLightGroup() + ")"; 85 86 dlg.cbM01Kennung.setSelectedItem(c); 86 if (dlg.cbM01Kennung.getSelectedItem().equals("Not set"))87 c = "";88 87 } 89 88 } … … 172 171 str = keys.get("seamark:topmark:shape"); 173 172 174 if (str. compareTo("2 spheres") == 0) {173 if (str.equals("2 spheres")) { 175 174 setTopMark(true); 176 175 … … 202 201 } 203 202 204 if (str. compareTo("white") == 0) {203 if (str.equals("white")) { 205 204 setFired(true); 206 205 setLightColour("W"); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyLat.java
r22683 r22692 349 349 image += ".png"; 350 350 351 // System.out.println("finename: " + image);352 351 dlg.lM01Icon01.setIcon(new ImageIcon(getClass().getResource(image))); 353 352 } else … … 752 751 } 753 752 if (!hasTopMark()) { 754 setErrMsg("Parse-Error: Topmark falsch");753 setErrMsg("Parse-Error: Invalid topmark"); 755 754 ret = false; 756 755 } … … 784 783 } else { 785 784 if (getErrMsg() == null) 786 setErrMsg("Parse-Error: Befeuerung falsch");785 setErrMsg("Parse-Error: Invalid light"); 787 786 else 788 setErrMsg(getErrMsg() + " / Befeuerung falsch");787 setErrMsg(getErrMsg() + " / Invalid light"); 789 788 } 790 789 -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyNota.java
r22647 r22692 148 148 149 149 String c = keys.get("seamark:light:character"); 150 String ce = c; 150 if (getLightGroup() != "") 151 c = c + "(" + getLightGroup() + ")"; 151 152 setLightChar(c); 152 153 setLightPeriod(keys); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySaw.java
r22683 r22692 203 203 setLightGroup(keys); 204 204 String c = keys.get("seamark:light:character"); 205 if (getLightGroup() != "") 206 c = c + "(" + getLightGroup() + ")"; 205 207 setLightChar(c); 206 208 setLightPeriod(keys); -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoySpec.java
r22683 r22692 147 147 break; 148 148 case SPEC_FLOAT: 149 super.saveSign("light_ Float");149 super.saveSign("light_float"); 150 150 Main.main.undoRedo.add(new ChangePropertyCommand(node, 151 151 "seamark:light_float:colour", "yellow")); … … 207 207 208 208 String c = keys.get("seamark:light:character"); 209 if (getLightGroup() != "") 210 c = c + "(" + getLightGroup() + ")"; 209 211 210 212 setLightChar(c); … … 218 220 } else { 219 221 if (getErrMsg() == null) 220 setErrMsg("Parse-Error: Licht falsch");222 setErrMsg("Parse-Error: Invalid light"); 221 223 else 222 setErrMsg(getErrMsg() + " / Licht falsch");224 setErrMsg(getErrMsg() + " / Invalid light"); 223 225 224 226 ret = false; -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/BuoyUkn.java
r22626 r22692 12 12 public BuoyUkn(SmpDialogAction dia, String Msg) { 13 13 super(dia); 14 15 dlg.cbM01StyleOfMark.removeAllItems(); 16 dlg.cbM01StyleOfMark.addItem("Not set"); 14 17 15 18 if (dlg.cbM01Kennung != null) {
Note:
See TracChangeset
for help on using the changeset viewer.