Changeset 27107 in osm for applications


Ignore:
Timestamp:
2011-11-21T11:48:14+01:00 (13 years ago)
Author:
malcolmh
Message:

save

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r27095 r27107  
    2323        }
    2424
    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);
    2726        static {
    2827                RegSTR.put(Reg.A, "iala-a");
     
    5453
    5554        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);
    6163        static {
    6264                ObjSTR.put(Obj.BCNCAR, "beacon_cardinal");
     
    100102        }
    101103
    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);
    104105        static {
    105106                EntMAP.put(Obj.BCNCAR, Ent.BEACON);
     
    133134        }
    134135
    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);
    137137        static {
    138138                GrpMAP.put(Obj.UNKNOWN, Grp.NUL);
     
    164164
    165165        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);
    171178        static {
    172179                CatSTR.put(Cat.LAM_PORT, "port");
     
    253260        }
    254261
    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);
    257263        static {
    258264                ShpSTR.put(Shp.PILLAR, "pillar");
     
    287293        }
    288294
    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);
    291296        static {
    292297                ColMAP.put(Col.UNKNOWN, new Color(0xc0c0c0));
     
    306311        }
    307312
    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);
    310314        static {
    311315                ColSTR.put(Col.WHITE, "white");
     
    465469        }
    466470
    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);
    469472        static {
    470473                VisSTR.put(Vis.UNKNOWN, "");
     
    483486        }
    484487
    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);
    487489        static {
    488490                LitSTR.put(Lit.UNKNOWN, "");
     
    511513        }
    512514
    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);
    515516        static {
    516517                ExhSTR.put(Exh.UNKNOWN, "");
     
    581582        }
    582583
    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);
    585585        static {
    586586                PatSTR.put(Pat.HORIZ, "horizontal");
     
    629629        }
    630630
    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);
    633632        static {
    634633                TopSTR.put(Top.CAN, "cylinder");
     
    663662        }
    664663
    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);
    667665        static {
    668666                RtbSTR.put(Rtb.RACON, "racon");
     
    745743        }
    746744
    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);
    749746        static {
    750747                FogSTR.put(Fog.UNKNOWN, "yes");
     
    812809        }
    813810
    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);
    816812        static {
    817813                StsSTR.put(Sts.PERM, "permanent");
     
    849845        }
    850846
    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);
    853848        static {
    854849                CnsSTR.put(Cns.BRICK, "masonry");
     
    877872        }
    878873
    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);
    881875        static {
    882876                ConSTR.put(Con.CONSP, "conspicuous");
     
    20702064                                if (!getHeight().isEmpty()) {
    20712065                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:"
    2072                                                         + objStr + "height", getHeight()));
     2066                                                        + objStr + ":height", getHeight()));
    20732067                                }
    20742068                                if (!getElevation().isEmpty()) {
    20752069                                        Main.main.undoRedo.add(new ChangePropertyCommand(node, "seamark:"
    2076                                                         + objStr + "elevation", getElevation()));
     2070                                                        + objStr + ":elevation", getElevation()));
    20772071                                }
    20782072                        }
Note: See TracChangeset for help on using the changeset viewer.