Changeset 26706 in osm
- Timestamp:
- 2011-09-24T21:30:31+02:00 (13 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
r26018 r26706 1323 1323 cbM01Sector.addItem(Messages.getString("SmpDialogAction.202")); //$NON-NLS-1$ 1324 1324 cbM01Sector.addItem(Messages.getString("SmpDialogAction.203")); //$NON-NLS-1$ 1325 cbM01Sector.addItem("10"); 1326 cbM01Sector.addItem("11"); 1327 cbM01Sector.addItem("12"); 1328 cbM01Sector.addItem("13"); 1329 cbM01Sector.addItem("14"); 1330 cbM01Sector.addItem("15"); 1331 cbM01Sector.addItem("16"); 1332 cbM01Sector.addItem("17"); 1333 cbM01Sector.addItem("18"); 1334 cbM01Sector.addItem("19"); 1325 1335 cbM01Sector.addActionListener(new ActionListener() { 1326 1336 public void actionPerformed(ActionEvent e) { -
applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java
r26527 r26706 261 261 } 262 262 263 private String[] LightChar = new String[ 10];263 private String[] LightChar = new String[20]; 264 264 265 265 public String getLightChar() { … … 273 273 } 274 274 275 private String[] LightColour = new String[ 10];275 private String[] LightColour = new String[20]; 276 276 277 277 public String getLightColour() { … … 285 285 } 286 286 287 private String[] LightGroup = new String[ 10];287 private String[] LightGroup = new String[20]; 288 288 289 289 public String getLightGroup() { … … 305 305 } 306 306 307 private String[] Height = new String[ 10];307 private String[] Height = new String[20]; 308 308 309 309 public String getHeight() { … … 317 317 } 318 318 319 private String[] Range = new String[ 10];319 private String[] Range = new String[20]; 320 320 321 321 public String getRange() { … … 329 329 } 330 330 331 private String[] Sequence = new String[ 10];331 private String[] Sequence = new String[20]; 332 332 333 333 public String getSeq() { … … 341 341 } 342 342 343 private String[] Bearing1 = new String[ 10];343 private String[] Bearing1 = new String[20]; 344 344 345 345 public String getBearing1() { … … 353 353 } 354 354 355 private String[] Bearing2 = new String[ 10];355 private String[] Bearing2 = new String[20]; 356 356 357 357 public String getBearing2() { … … 365 365 } 366 366 367 private String[] Radius = new String[ 10];367 private String[] Radius = new String[20]; 368 368 369 369 public String getRadius() { … … 377 377 } 378 378 379 private String[] LightPeriod = new String[ 10];379 private String[] LightPeriod = new String[20]; 380 380 381 381 public String getLightPeriod() { … … 470 470 int index = 0; 471 471 key = key.substring(14); 472 if (key.matches("^\\d:.*")) { 472 if (key.matches("^\\d\\d:.*")) { 473 index = ((key.charAt(0) - '0') * 10) + key.charAt(1) - '0'; 474 key = key.substring(3); 475 } else if (key.matches("^\\d:.*")) { 476 index = key.charAt(0) - '0'; 477 key = key.substring(2); 478 } else if ((key.matches("^\\d$")) || (key.matches("^\\d\\d$"))) { 473 479 index = key.charAt(0) - '0'; 474 key = key.substring(2);475 } else if (key.matches("^\\d$")) {476 index = key.charAt(0) - '0';480 if (key.matches("^\\d\\d$")) { 481 index = (index * 10) + key.charAt(1) - '0'; 482 } 477 483 String values[] = value.split(":"); 478 484 if (values[0].equals("red")) … … 971 977 "seamark:light:radius", Radius[0])); 972 978 973 for (int i = 1; i < 10; i++) {979 for (int i = 1; i < 20; i++) { 974 980 975 981 if (LightColour[i] != null) {
Note:
See TracChangeset
for help on using the changeset viewer.