Changeset 27107 in osm for applications/editors/josm/plugins/smed/plugs
- Timestamp:
- 2011-11-21T11:48:14+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java
r27095 r27107 23 23 } 24 24 25 public static final EnumMap<Reg, String> RegSTR = new EnumMap<Reg, String>( 26 Reg.class); 25 public static final EnumMap<Reg, String> RegSTR = new EnumMap<Reg, String>(Reg.class); 27 26 static { 28 27 RegSTR.put(Reg.A, "iala-a"); … … 54 53 55 54 public enum Obj { 56 UNKNOWN, BCNCAR, BCNISD, BCNLAT, BCNSAW, BCNSPP, BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, FLTCAR, FLTISD, FLTLAT, FLTSAW, FLTSPP, LITMAJ, LITMIN, LITFLT, LITVES, LITHSE, LNDMRK, MORFAC, SISTAW, SISTAT 57 } 58 59 public static final EnumMap<Obj, String> ObjSTR = new EnumMap<Obj, String>( 60 Obj.class); 55 UNKNOWN, BCNCAR, BCNISD, BCNLAT, BCNSAW, BCNSPP, 56 BOYCAR, BOYISD, BOYLAT, BOYSAW, BOYSPP, 57 FLTCAR, FLTISD, FLTLAT, FLTSAW, FLTSPP, 58 LITMAJ, LITMIN, LITFLT, LITVES, LITHSE, LNDMRK, 59 MORFAC, SISTAW, SISTAT 60 } 61 62 public static final EnumMap<Obj, String> ObjSTR = new EnumMap<Obj, String>(Obj.class); 61 63 static { 62 64 ObjSTR.put(Obj.BCNCAR, "beacon_cardinal"); … … 100 102 } 101 103 102 public static final EnumMap<Obj, Ent> EntMAP = new EnumMap<Obj, Ent>( 103 Obj.class); 104 public static final EnumMap<Obj, Ent> EntMAP = new EnumMap<Obj, Ent>(Obj.class); 104 105 static { 105 106 EntMAP.put(Obj.BCNCAR, Ent.BEACON); … … 133 134 } 134 135 135 public static final EnumMap<Obj, Grp> GrpMAP = new EnumMap<Obj, Grp>( 136 Obj.class); 136 public static final EnumMap<Obj, Grp> GrpMAP = new EnumMap<Obj, Grp>(Obj.class); 137 137 static { 138 138 GrpMAP.put(Obj.UNKNOWN, Grp.NUL); … … 164 164 165 165 public enum Cat { 166 NONE, LAM_PORT, LAM_STBD, LAM_PPORT, LAM_PSTBD, CAM_NORTH, CAM_EAST, CAM_SOUTH, CAM_WEST, ACH_URST, ACH_DEEP, ACH_TANK, ACH_EXPL, ACH_QUAR, ACH_SPLN, ACH_SCAN, ACH_SCMO, ACH_T24H, ACH_TLIM, SPM_UNKN, SPM_WARN, SPM_CHBF, SPM_YCHT, SPM_CABL, SPM_OFAL, SPM_ODAS, SPM_RECN, SPM_MOOR, SPM_LNBY, SPM_LDNG, SPM_NOTC, SPM_TSS, SPM_FOUL, SPM_DIVE, SPM_FRRY, SPM_ANCH, MOR_DLPN, MOR_DDPN, MOR_BLRD, MOR_WALL, MOR_POST, MOR_CHWR, MOR_BUOY, SIS_PTCL, SIS_PTED, SIS_IPT, SIS_BRTH, SIS_DOCK, SIS_LOCK, SIS_FBAR, SIS_BRDG, SIS_DRDG, SIS_TRFC, SIS_DNGR, SIS_OBST, SIS_CABL, SIS_MILY, SIS_DSTR, SIS_WTHR, SIS_STRM, SIS_ICE, SIS_TIME, SIS_TIDE, SIS_TSTM, SIS_TGAG, SIS_TSCL, SIS_DIVE, SIS_LGAG, LIT_DIRF, LIT_LEDG, LMK_CHMY, LMK_CARN, LMK_DSHA, LMK_FLGS, LMK_FLRS, LMK_MNMT, LMK_RADM, LMK_TOWR, LMK_WNDM, LMK_WTRT 167 } 168 169 public static final EnumMap<Cat, String> CatSTR = new EnumMap<Cat, String>( 170 Cat.class); 166 NONE, LAM_PORT, LAM_STBD, LAM_PPORT, LAM_PSTBD, CAM_NORTH, CAM_EAST, CAM_SOUTH, CAM_WEST, 167 ACH_URST, ACH_DEEP, ACH_TANK, ACH_EXPL, ACH_QUAR, ACH_SPLN, ACH_SCAN, ACH_SCMO, ACH_T24H, ACH_TLIM, 168 SPM_UNKN, SPM_WARN, SPM_CHBF, SPM_YCHT, SPM_CABL, SPM_OFAL, SPM_ODAS, SPM_RECN, SPM_MOOR, SPM_LNBY, 169 SPM_LDNG, SPM_NOTC, SPM_TSS, SPM_FOUL, SPM_DIVE, SPM_FRRY, SPM_ANCH, 170 MOR_DLPN, MOR_DDPN, MOR_BLRD, MOR_WALL, MOR_POST, MOR_CHWR, MOR_BUOY, 171 SIS_PTCL, SIS_PTED, SIS_IPT, SIS_BRTH, SIS_DOCK, SIS_LOCK, SIS_FBAR, SIS_BRDG, SIS_DRDG, SIS_TRFC, 172 SIS_DNGR, SIS_OBST, SIS_CABL, SIS_MILY, SIS_DSTR, SIS_WTHR, SIS_STRM, SIS_ICE, SIS_TIME, SIS_TIDE, 173 SIS_TSTM, SIS_TGAG, SIS_TSCL, SIS_DIVE, SIS_LGAG, 174 LIT_DIRF, LIT_LEDG, LMK_CHMY, LMK_CARN, LMK_DSHA, LMK_FLGS, LMK_FLRS, LMK_MNMT, LMK_RADM, LMK_TOWR, LMK_WNDM, LMK_WTRT 175 } 176 177 public static final EnumMap<Cat, String> CatSTR = new EnumMap<Cat, String>(Cat.class); 171 178 static { 172 179 CatSTR.put(Cat.LAM_PORT, "port"); … … 253 260 } 254 261 255 public static final EnumMap<Shp, String> ShpSTR = new EnumMap<Shp, String>( 256 Shp.class); 262 public static final EnumMap<Shp, String> ShpSTR = new EnumMap<Shp, String>(Shp.class); 257 263 static { 258 264 ShpSTR.put(Shp.PILLAR, "pillar"); … … 287 293 } 288 294 289 public static final EnumMap<Col, Color> ColMAP = new EnumMap<Col, Color>( 290 Col.class); 295 public static final EnumMap<Col, Color> ColMAP = new EnumMap<Col, Color>(Col.class); 291 296 static { 292 297 ColMAP.put(Col.UNKNOWN, new Color(0xc0c0c0)); … … 306 311 } 307 312 308 public static final EnumMap<Col, String> ColSTR = new EnumMap<Col, String>( 309 Col.class); 313 public static final EnumMap<Col, String> ColSTR = new EnumMap<Col, String>(Col.class); 310 314 static { 311 315 ColSTR.put(Col.WHITE, "white"); … … 465 469 } 466 470 467 public static final EnumMap<Vis, String> VisSTR = new EnumMap<Vis, String>( 468 Vis.class); 471 public static final EnumMap<Vis, String> VisSTR = new EnumMap<Vis, String>(Vis.class); 469 472 static { 470 473 VisSTR.put(Vis.UNKNOWN, ""); … … 483 486 } 484 487 485 public static final EnumMap<Lit, String> LitSTR = new EnumMap<Lit, String>( 486 Lit.class); 488 public static final EnumMap<Lit, String> LitSTR = new EnumMap<Lit, String>(Lit.class); 487 489 static { 488 490 LitSTR.put(Lit.UNKNOWN, ""); … … 511 513 } 512 514 513 public static final EnumMap<Exh, String> ExhSTR = new EnumMap<Exh, String>( 514 Exh.class); 515 public static final EnumMap<Exh, String> ExhSTR = new EnumMap<Exh, String>(Exh.class); 515 516 static { 516 517 ExhSTR.put(Exh.UNKNOWN, ""); … … 581 582 } 582 583 583 public static final EnumMap<Pat, String> PatSTR = new EnumMap<Pat, String>( 584 Pat.class); 584 public static final EnumMap<Pat, String> PatSTR = new EnumMap<Pat, String>(Pat.class); 585 585 static { 586 586 PatSTR.put(Pat.HORIZ, "horizontal"); … … 629 629 } 630 630 631 public static final EnumMap<Top, String> TopSTR = new EnumMap<Top, String>( 632 Top.class); 631 public static final EnumMap<Top, String> TopSTR = new EnumMap<Top, String>(Top.class); 633 632 static { 634 633 TopSTR.put(Top.CAN, "cylinder"); … … 663 662 } 664 663 665 public static final EnumMap<Rtb, String> RtbSTR = new EnumMap<Rtb, String>( 666 Rtb.class); 664 public static final EnumMap<Rtb, String> RtbSTR = new EnumMap<Rtb, String>(Rtb.class); 667 665 static { 668 666 RtbSTR.put(Rtb.RACON, "racon"); … … 745 743 } 746 744 747 public static final EnumMap<Fog, String> FogSTR = new EnumMap<Fog, String>( 748 Fog.class); 745 public static final EnumMap<Fog, String> FogSTR = new EnumMap<Fog, String>(Fog.class); 749 746 static { 750 747 FogSTR.put(Fog.UNKNOWN, "yes"); … … 812 809 } 813 810 814 public static final EnumMap<Sts, String> StsSTR = new EnumMap<Sts, String>( 815 Sts.class); 811 public static final EnumMap<Sts, String> StsSTR = new EnumMap<Sts, String>(Sts.class); 816 812 static { 817 813 StsSTR.put(Sts.PERM, "permanent"); … … 849 845 } 850 846 851 public static final EnumMap<Cns, String> CnsSTR = new EnumMap<Cns, String>( 852 Cns.class); 847 public static final EnumMap<Cns, String> CnsSTR = new EnumMap<Cns, String>(Cns.class); 853 848 static { 854 849 CnsSTR.put(Cns.BRICK, "masonry"); … … 877 872 } 878 873 879 public static final EnumMap<Con, String> ConSTR = new EnumMap<Con, String>( 880 Con.class); 874 public static final EnumMap<Con, String> ConSTR = new EnumMap<Con, String>(Con.class); 881 875 static { 882 876 ConSTR.put(Con.CONSP, "conspicuous"); … … 2070 2064 if (!getHeight().isEmpty()) { 2071 2065 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" 2072 + objStr + " height", getHeight()));2066 + objStr + ":height", getHeight())); 2073 2067 } 2074 2068 if (!getElevation().isEmpty()) { 2075 2069 Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:" 2076 + objStr + " elevation", getElevation()));2070 + objStr + ":elevation", getElevation())); 2077 2071 } 2078 2072 }
Note:
See TracChangeset
for help on using the changeset viewer.