Ignore:
Timestamp:
2009-07-19T22:30:35+02:00 (15 years ago)
Author:
jttt
Message:

Use Main.main.getCurrentDataset instead of old Main.ds

Location:
applications/editors/josm/plugins/routes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/routes/build.xml

    r16431 r16594  
    3535                <attribute name="Plugin-Date" value="${version.entry.commit.date}"/>
    3636                <attribute name="Plugin-Description" value="Renders routes (bus, hiking trails, bicycle routes, ..). Route types must be defined in routes.xml file in plugin directory"/>
    37                 <attribute name="Plugin-Mainversion" value="1725"/>
     37                <attribute name="Plugin-Mainversion" value="1815"/>
    3838                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3939            </manifest>
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RelationEditMode.java

    r16448 r16594  
    6565        Way way = Main.map.mapView.getNearestWay(e.getPoint());
    6666       
    67         Collection<OsmPrimitive> selectedRelations = Main.ds.getSelectedRelations();
     67        Collection<OsmPrimitive> selectedRelations = Main.main.getCurrentDataSet().getSelectedRelations();
    6868       
    6969        if (way != null) {
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r16593 r16594  
    9797                pathBuilder.clear();
    9898
    99                 for (Relation relation:Main.ds.relations) {
     99                for (Relation relation:Main.main.getCurrentDataSet().relations) {
    100100                        for (RouteDefinition route:routes) {
    101101                                if (route.matches(relation)) {
     
    105105                }
    106106
    107                 for (Way way:Main.ds.ways) {
     107                for (Way way:Main.main.getCurrentDataSet().ways) {
    108108                        for (RouteDefinition route:routes) {
    109109                                if (route.matches(way)) {
Note: See TracChangeset for help on using the changeset viewer.