Changeset 22752 in osm for applications/editors/josm/plugins/toms
- Timestamp:
- 2010-08-23T19:18:00+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/toms/src/toms/dialogs/SmpDialogAction.java
r22746 r22752 322 322 // schrieben werden 323 323 324 if (keys.containsKey("seamark:type")) {324 if (keys.containsKey("seamark:type")) 325 325 type = keys.get("seamark:type"); 326 326 327 if (type.equals("buoy_lateral") || type.equals("beacon_lateral") 328 || keys.containsKey("seamark:buoy_lateral:category") 329 || keys.containsKey("seamark:buoy_lateral:shape") 330 || keys.containsKey("seamark:buoy_lateral:colour") 331 || keys.containsKey("seamark:beacon_lateral:category") 332 || keys.containsKey("seamark:beacon_lateral:shape") 333 || keys.containsKey("seamark:beacon_lateral:colour")) { 334 buoy = new BuoyLat(this, node); 335 return; 336 337 } else if (type.equals("buoy_cardinal") || type.equals("beacon_cardinal") 338 || keys.containsKey("seamark:buoy_cardinal:category") 339 || keys.containsKey("seamark:buoy_cardinal:shape") 340 || keys.containsKey("seamark:buoy_cardinal:colour") 341 || keys.containsKey("seamark:beacon_cardinal:category") 342 || keys.containsKey("seamark:beacon_cardinal:shape") 343 || keys.containsKey("seamark:beacon_cardinal:colour")) { 344 buoy = new BuoyCard(this, node); 345 return; 346 347 } else if (type.equals("buoy_safe_water") 348 || type.equals("beacon_safe_water") 349 || keys.containsKey("seamark:buoy_safe_water:shape") 350 || keys.containsKey("seamark:buoy_safe_water:colour") 351 || keys.containsKey("seamark:beacon_safe_water:shape") 352 || keys.containsKey("seamark:beacon_safe_water:colour")) { 353 buoy = new BuoySaw(this, node); 354 return; 355 356 } else if (type.equals("buoy_special_purpose") 357 || type.equals("beacon_special_purpose") 358 || keys.containsKey("seamark:buoy_special_purpose:shape") 359 || keys.containsKey("seamark:buoy_special_purpose:colour") 360 || keys.containsKey("seamark:beacon_special_purpose:shape") 361 || keys.containsKey("seamark:beacon_special_purpose:colour")) { 362 buoy = new BuoySpec(this, node); 363 return; 364 365 } else if (type.equals("buoy_isolated_danger") 366 || type.equals("beacon_isolated_danger") 367 || keys.containsKey("seamark:buoy_isolated_danger:shape") 368 || keys.containsKey("seamark:buoy_isolated_danger:colour") 369 || keys.containsKey("seamark:beacon_isolated_danger:shape") 370 || keys.containsKey("seamark:beacon_isolated_danger:colour")) { 371 buoy = new BuoyIsol(this, node); 372 return; 373 374 } else if (type.equals("light_float")) { 375 if (keys.containsKey("seamark:light_float:colour")) { 376 str = keys.get("seamark:light_float:colour"); 377 if (str.equals("red") || str.equals("green") 378 || str.equals("red;green;red") || str.equals("green;red;green")) { 379 buoy = new BuoyLat(this, node); 380 return; 381 } else if (str.equals("black;yellow") 382 || str.equals("black;yellow;black") || str.equals("yellow;black") 383 || str.equals("yellow;black;yellow")) { 384 buoy = new BuoyCard(this, node); 385 return; 386 } else if (str.equals("black;red;black")) { 387 buoy = new BuoyIsol(this, node); 388 return; 389 } else if (str.equals("red;white")) { 390 buoy = new BuoySaw(this, node); 391 return; 392 } else if (str.equals("yellow")) { 393 buoy = new BuoySaw(this, node); 394 return; 395 } else { 396 buoy = new BuoyUkn(this, "Parse-Error: Invalid colour"); 397 buoy.setNode(node); 398 return; 399 } 400 } else if (keys.containsKey("seamark:light_float:topmark:shape")) { 401 str = keys.get("seamark:light_float:topmark:shape"); 402 if (str.equals("cylinder") || str.equals("cone, point up")) { 403 buoy = new BuoyLat(this, node); 404 return; 405 } 406 } else if (keys.containsKey("seamark:light_float:topmark:colour")) { 407 str = keys.get("seamark:light_float:topmark:colour"); 408 if (str.equals("red") || str.equals("green")) { 409 buoy = new BuoyLat(this, node); 410 return; 411 } 327 if (type.equals("buoy_lateral") || type.equals("beacon_lateral") 328 || keys.containsKey("seamark:buoy_lateral:category") 329 || keys.containsKey("seamark:buoy_lateral:shape") 330 || keys.containsKey("seamark:buoy_lateral:colour") 331 || keys.containsKey("seamark:beacon_lateral:category") 332 || keys.containsKey("seamark:beacon_lateral:shape") 333 || keys.containsKey("seamark:beacon_lateral:colour")) { 334 buoy = new BuoyLat(this, node); 335 return; 336 337 } else if (type.equals("buoy_cardinal") || type.equals("beacon_cardinal") 338 || keys.containsKey("seamark:buoy_cardinal:category") 339 || keys.containsKey("seamark:buoy_cardinal:shape") 340 || keys.containsKey("seamark:buoy_cardinal:colour") 341 || keys.containsKey("seamark:beacon_cardinal:category") 342 || keys.containsKey("seamark:beacon_cardinal:shape") 343 || keys.containsKey("seamark:beacon_cardinal:colour")) { 344 buoy = new BuoyCard(this, node); 345 return; 346 347 } else if (type.equals("buoy_safe_water") 348 || type.equals("beacon_safe_water") 349 || keys.containsKey("seamark:buoy_safe_water:shape") 350 || keys.containsKey("seamark:buoy_safe_water:colour") 351 || keys.containsKey("seamark:beacon_safe_water:shape") 352 || keys.containsKey("seamark:beacon_safe_water:colour")) { 353 buoy = new BuoySaw(this, node); 354 return; 355 356 } else if (type.equals("buoy_special_purpose") 357 || type.equals("beacon_special_purpose") 358 || keys.containsKey("seamark:buoy_special_purpose:shape") 359 || keys.containsKey("seamark:buoy_special_purpose:colour") 360 || keys.containsKey("seamark:beacon_special_purpose:shape") 361 || keys.containsKey("seamark:beacon_special_purpose:colour")) { 362 buoy = new BuoySpec(this, node); 363 return; 364 365 } else if (type.equals("buoy_isolated_danger") 366 || type.equals("beacon_isolated_danger") 367 || keys.containsKey("seamark:buoy_isolated_danger:shape") 368 || keys.containsKey("seamark:buoy_isolated_danger:colour") 369 || keys.containsKey("seamark:beacon_isolated_danger:shape") 370 || keys.containsKey("seamark:beacon_isolated_danger:colour")) { 371 buoy = new BuoyIsol(this, node); 372 return; 373 374 } else if (type.equals("light_float")) { 375 if (keys.containsKey("seamark:light_float:colour")) { 376 str = keys.get("seamark:light_float:colour"); 377 if (str.equals("red") || str.equals("green") 378 || str.equals("red;green;red") || str.equals("green;red;green")) { 379 buoy = new BuoyLat(this, node); 380 return; 381 } else if (str.equals("black;yellow") 382 || str.equals("black;yellow;black") || str.equals("yellow;black") 383 || str.equals("yellow;black;yellow")) { 384 buoy = new BuoyCard(this, node); 385 return; 386 } else if (str.equals("black;red;black")) { 387 buoy = new BuoyIsol(this, node); 388 return; 389 } else if (str.equals("red;white")) { 390 buoy = new BuoySaw(this, node); 391 return; 392 } else if (str.equals("yellow")) { 393 buoy = new BuoySaw(this, node); 394 return; 395 } else { 396 buoy = new BuoyUkn(this, "Parse-Error: Invalid colour"); 397 buoy.setNode(node); 398 return; 399 } 400 } else if (keys.containsKey("seamark:light_float:topmark:shape")) { 401 str = keys.get("seamark:light_float:topmark:shape"); 402 if (str.equals("cylinder") || str.equals("cone, point up")) { 403 buoy = new BuoyLat(this, node); 404 return; 405 } 406 } else if (keys.containsKey("seamark:light_float:topmark:colour")) { 407 str = keys.get("seamark:light_float:topmark:colour"); 408 if (str.equals("red") || str.equals("green")) { 409 buoy = new BuoyLat(this, node); 410 return; 412 411 } 413 412 }
Note:
See TracChangeset
for help on using the changeset viewer.