Changeset 19338 in osm for applications/editors/josm
- Timestamp:
- 2010-01-09T16:58:37+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteDefinition.java
r18800 r19338 9 9 10 10 public class RouteDefinition { 11 11 12 12 private final Color color; 13 13 private final String matchString; 14 14 private Match match; 15 15 private final int index; 16 16 17 17 public RouteDefinition(int index, Color color, String expression) { 18 18 this.color = color; … … 22 22 match = SearchCompiler.compile(expression, false, false); 23 23 } catch (ParseError e) { 24 match = n ull;24 match = new SearchCompiler.Never(); 25 25 e.printStackTrace(); 26 26 } 27 27 } 28 28 29 29 public boolean matches(OsmPrimitive primitive) { 30 30 return match.match(primitive); 31 31 } 32 32 33 33 public Color getColor() { 34 34 return color; 35 35 } 36 36 37 37 public int getIndex() { 38 38 return index; 39 39 } 40 40 41 41 @Override 42 42 public String toString() {
Note:
See TracChangeset
for help on using the changeset viewer.