Changeset 28443 in osm for applications/editors/josm/plugins
- Timestamp:
- 2012-06-18T13:55:46+02:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r28164 r28443 2634 2634 if (!((String) sectors.get(i)[1]).isEmpty()) 2635 2635 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":character", (String) sectors.get(i)[1])); 2636 else if (!((String) sectors.get(0)[1]).isEmpty()) 2637 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":character", (String) sectors.get(0)[1])); 2636 2638 if (!((String) sectors.get(i)[2]).isEmpty()) 2637 2639 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":group", (String) sectors.get(i)[2])); 2640 else if (!((String) sectors.get(0)[2]).isEmpty()) 2641 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":group", (String) sectors.get(0)[2])); 2638 2642 if (!((String) sectors.get(i)[3]).isEmpty()) 2639 2643 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sequence", (String) sectors.get(i)[3])); 2644 else if (!((String) sectors.get(0)[3]).isEmpty()) 2645 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sequence", (String) sectors.get(0)[3])); 2640 2646 if (!((String) sectors.get(i)[4]).isEmpty()) 2641 2647 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":period", (String) sectors.get(i)[4])); 2648 else if (!((String) sectors.get(0)[4]).isEmpty()) 2649 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":period", (String) sectors.get(0)[4])); 2642 2650 if (sectors.get(i)[5] != Lit.UNKLIT) 2643 2651 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":category", LitSTR.get(sectors.get(i)[5]))); 2652 else if (sectors.get(0)[5] != Lit.UNKLIT) 2653 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":category", LitSTR.get(sectors.get(0)[5]))); 2644 2654 if (!((String) sectors.get(i)[6]).isEmpty()) 2645 2655 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":sector_start", (String) sectors.get(i)[6])); … … 2648 2658 if (!((String) sectors.get(i)[8]).isEmpty()) 2649 2659 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":radius", (String) sectors.get(i)[8])); 2660 else if (!((String) sectors.get(0)[8]).isEmpty()) 2661 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":radius", (String) sectors.get(0)[8])); 2650 2662 if (!((String) sectors.get(i)[9]).isEmpty()) 2651 2663 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":height", (String) sectors.get(i)[9])); 2664 else if (!((String) sectors.get(0)[9]).isEmpty()) 2665 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":height", (String) sectors.get(0)[9])); 2652 2666 if (!((String) sectors.get(i)[10]).isEmpty()) 2653 2667 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":range", (String) sectors.get(i)[10])); 2668 else if (!((String) sectors.get(0)[10]).isEmpty()) 2669 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":range", (String) sectors.get(0)[10])); 2654 2670 if (sectors.get(i)[11] != Vis.UNKVIS) 2655 2671 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":visibility", VisSTR.get(sectors.get(i)[11]))); 2672 else if (sectors.get(0)[11] != Vis.UNKVIS) 2673 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":visibility", VisSTR.get(sectors.get(0)[11]))); 2656 2674 if (sectors.get(i)[12] != Exh.UNKEXH) 2657 2675 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":exhibition", ExhSTR.get(sectors.get(i)[12]))); 2676 else if (sectors.get(0)[12] != Exh.UNKEXH) 2677 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":exhibition", ExhSTR.get(sectors.get(0)[12]))); 2658 2678 if (!((String) sectors.get(i)[13]).isEmpty()) 2659 2679 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":orientation", (String) sectors.get(i)[13])); 2660 2680 if (!((String) sectors.get(i)[14]).isEmpty()) 2661 2681 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":multiple", (String) sectors.get(i)[14])); 2682 else if (!((String) sectors.get(0)[14]).isEmpty()) 2683 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:light" + secStr + ":multiple", (String) sectors.get(0)[14])); 2662 2684 } 2663 2685
Note:
See TracChangeset
for help on using the changeset viewer.