Ignore:
Timestamp:
2011-01-23T13:17:10+01:00 (15 years ago)
Author:
bastiK
Message:

some renaming (to make future commits easier to read)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/StyleSource.java

    r3803 r3805  
    1010import java.util.regex.Matcher;
    1111import java.util.regex.Pattern;
     12
    1213import org.openstreetmap.josm.data.osm.Node;
    1314import org.openstreetmap.josm.data.osm.OsmPrimitive;
    1415import org.openstreetmap.josm.data.osm.OsmUtils;
    1516import org.openstreetmap.josm.data.osm.Way;
     17import org.openstreetmap.josm.gui.mappaint.xml.XmlCondition;
    1618import org.openstreetmap.josm.gui.preferences.SourceEntry;
    1719
     
    172174    }
    173175
    174     public void add(Rule r, Collection<Rule> rules, LineElemStyle style) {
    175         if(rules != null)
    176         {
    177             style.rules = rules;
     176    public void add(XmlCondition c, Collection<XmlCondition> conditions, LineElemStyle style) {
     177        if(conditions != null)
     178        {
     179            style.conditions = conditions;
    178180            linesList.add(style);
    179181        }
    180182        else {
    181             String key = r.getKey();
     183            String key = c.getKey();
    182184            style.code = key;
    183185            lines.put(key, style);
     
    185187    }
    186188
    187     public void addModifier(Rule r, Collection<Rule> rules, LineElemStyle style) {
    188         if(rules != null)
    189         {
    190             style.rules = rules;
     189    public void addModifier(XmlCondition c, Collection<XmlCondition> conditions, LineElemStyle style) {
     190        if(conditions != null)
     191        {
     192            style.conditions = conditions;
    191193            modifiersList.add(style);
    192194        }
    193195        else
    194196        {
    195             String key = r.getKey();
     197            String key = c.getKey();
    196198            style.code = key;
    197199            modifiers.put(key, style);
     
    199201    }
    200202
    201     public void add(Rule r, Collection<Rule> rules, AreaElemStyle style) {
    202         if(rules != null)
    203         {
    204             style.rules = rules;
     203    public void add(XmlCondition c, Collection<XmlCondition> conditions, AreaElemStyle style) {
     204        if(conditions != null)
     205        {
     206            style.conditions = conditions;
    205207            areasList.add(style);
    206208        }
    207209        else
    208210        {
    209             String key = r.getKey();
     211            String key = c.getKey();
    210212            style.code = key;
    211213            areas.put(key, style);
     
    213215    }
    214216
    215     public void add(Rule r, Collection<Rule> rules, IconElemStyle style) {
    216         if(rules != null)
    217         {
    218             style.rules = rules;
     217    public void add(XmlCondition c, Collection<XmlCondition> conditions, IconElemStyle style) {
     218        if(conditions != null)
     219        {
     220            style.conditions = conditions;
    219221            iconsList.add(style);
    220222        }
    221223        else
    222224        {
    223             String key = r.getKey();
     225            String key = c.getKey();
    224226            style.code = key;
    225227            icons.put(key, style);
Note: See TracChangeset for help on using the changeset viewer.