Changeset 4480 in osm


Ignore:
Timestamp:
2007-09-06T23:16:00+02:00 (17 years ago)
Author:
frederik
Message:
  • added "relation" type to search compiler
File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/core_0.5/src/org/openstreetmap/josm/actions/search/SearchCompiler.java

    r4466 r4480  
    99import org.openstreetmap.josm.data.osm.Node;
    1010import org.openstreetmap.josm.data.osm.OsmPrimitive;
     11import org.openstreetmap.josm.data.osm.Relation;
    1112import org.openstreetmap.josm.data.osm.Way;
    1213
     
    113114                        if (osm instanceof Way)
    114115                                return type.equals("way");
     116                        if (osm instanceof Relation)
     117                                return type.equals("relation");
    115118                        throw new IllegalStateException("unknown class "+osm.getClass());
    116119                }
Note: See TracChangeset for help on using the changeset viewer.