Changeset 25549 in osm for applications


Ignore:
Timestamp:
2011-03-09T09:07:20+01:00 (13 years ago)
Author:
malcolmh
Message:

'Bug fix release'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/toms/src/toms/seamarks/buoys/Buoy.java

    r25542 r25549  
    3939        }
    4040
    41         private String Ref = "";
    42 
    43         public String getRef() {
    44                 return Ref;
    45         }
    46 
    47         public void setRef(String ref) {
    48                 Ref = ref;
    49         }
    50 
    51         private String Inf = "";
    52 
    53         public String getInf() {
    54                 return Inf;
    55         }
    56 
    57         public void setInf(String inf) {
    58                 Inf = inf;
    59         }
    60 
    6141        private String Fixme = "";
    6242
     
    197177        public void setFired(boolean fired) {
    198178                Fired = fired;
     179        }
     180
     181        private String LitRef = "";
     182
     183        public String getLitRef() {
     184                return LitRef;
     185        }
     186
     187        public void setLitRef(String ref) {
     188                LitRef = ref;
     189        }
     190
     191        private String LitInf = "";
     192
     193        public String getLitInf() {
     194                return LitInf;
     195        }
     196
     197        public void setLitInf(String inf) {
     198                LitInf = inf;
     199        }
     200
     201        private String LitCat = "";
     202
     203        public String getLitCat() {
     204                return LitCat;
     205        }
     206
     207        public void setLitCat(String cat) {
     208                LitCat = cat;
     209        }
     210
     211        private String LitMul = "";
     212
     213        public String getLitMul() {
     214                return LitMul;
     215        }
     216
     217        public void setLitMul(String mul) {
     218                LitMul = mul;
    199219        }
    200220
     
    484504                                        setSectored(true);
    485505                                if (key.equals("ref"))
    486                                         setRef(value);
     506                                        setLitRef(value);
    487507                                if (key.equals("inform"))
    488                                         setInf(value);
     508                                        setLitInf(value);
     509                                if (key.equals("category"))
     510                                        setLitCat(value);
     511                                if (key.equals("multiple"))
     512                                        setLitMul(value);
    489513                                if (key.equals("colour")) {
    490514                                        if (value.equals("red"))
     
    900924                                }
    901925
    902                         if (!Ref.isEmpty())
    903                                 Main.main.undoRedo.add(new ChangePropertyCommand(Node,
    904                                                 "seamark:light:ref", Ref));
    905 
    906                         if (!Inf.isEmpty())
    907                                 Main.main.undoRedo.add(new ChangePropertyCommand(Node,
    908                                                 "seamark:light:inform", Inf));
     926                        if (!LitRef.isEmpty())
     927                                Main.main.undoRedo.add(new ChangePropertyCommand(Node,
     928                                                "seamark:light:ref", LitRef));
     929
     930                        if (!LitInf.isEmpty())
     931                                Main.main.undoRedo.add(new ChangePropertyCommand(Node,
     932                                                "seamark:light:inform", LitInf));
     933
     934                        if (!LitCat.isEmpty())
     935                                Main.main.undoRedo.add(new ChangePropertyCommand(Node,
     936                                                "seamark:light:category", LitCat));
     937
     938                        if (!LitMul.isEmpty())
     939                                Main.main.undoRedo.add(new ChangePropertyCommand(Node,
     940                                                "seamark:light:multiple", LitMul));
    909941
    910942                        if (!LightPeriod[0].isEmpty())
     
    11221154                setLongname("");
    11231155                setFixme("");
    1124                 setRef("");
    1125                 setInf("");
     1156                setLitRef("");
     1157                setLitInf("");
     1158                setLitCat("");
     1159                setLitMul("");
    11261160                dlg.cM01TopMark.setSelected(false);
    11271161                dlg.cM01TopMark.setVisible(false);
Note: See TracChangeset for help on using the changeset viewer.