Changeset 18427 in osm for applications/editors


Ignore:
Timestamp:
2009-11-02T21:12:54+01:00 (15 years ago)
Author:
jttt
Message:

Replace Dataset.nodes with getNodes(), etc

Location:
applications/editors/josm/plugins
Files:
4 edited

Legend:

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

    r18076 r18427  
    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="2263"/>
     37                <attribute name="Plugin-Mainversion" value="2388"/>
    3838                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3939            </manifest>
  • applications/editors/josm/plugins/routes/src/org/openstreetmap/josm/plugins/routes/RouteLayer.java

    r17564 r18427  
    11package org.openstreetmap.josm.plugins.routes;
    22
    3 import java.awt.Stroke;
    43import java.awt.Color;
    54import java.awt.Component;
    65import java.awt.Graphics;
    76import java.awt.Graphics2D;
     7import java.awt.Stroke;
    88import java.util.ArrayList;
    99import java.util.List;
     
    105105                pathBuilder.clear();
    106106
    107                 for (Relation relation:dataset.relations) {
     107                for (Relation relation:dataset.getRelations()) {
    108108                        for (RouteDefinition route:routes) {
    109109                                if (route.matches(relation)) {
     
    113113                }
    114114
    115                 for (Way way:dataset.ways) {
     115                for (Way way:dataset.getWays()) {
    116116                        for (RouteDefinition route:routes) {
    117117                                if (route.matches(way)) {
  • applications/editors/josm/plugins/surveyor/build.xml

    r17384 r18427  
    3737                <attribute name="Plugin-Description" value="Allow adding markers/nodes on current gps positions."/>
    3838                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/Surveyor"/>
    39                 <attribute name="Plugin-Mainversion" value="2012"/>
     39                <attribute name="Plugin-Mainversion" value="2388"/>
    4040                <attribute name="Plugin-Requires" value="livegps"/>
    4141                <attribute name="Plugin-Stage" value="60"/>
  • applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/action/SetNodeAction.java

    r16625 r18427  
    7070        node.put("created_by", "JOSM-surveyor-plugin");
    7171        synchronized(LiveGpsLock.class) {
    72             Main.map.mapView.getEditLayer().data.nodes.add(node);
     72            Main.map.mapView.getEditLayer().data.addPrimitive(node);
    7373            Main.main.getCurrentDataSet().setSelected(node);
    7474        }
Note: See TracChangeset for help on using the changeset viewer.