Changeset 18482 in osm


Ignore:
Timestamp:
2009-11-07T07:32:25+01:00 (15 years ago)
Author:
guggis
Message:

Update to JOSM 2396

Location:
applications/editors/josm/plugins/openstreetbugs
Files:
5 edited

Legend:

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

    r18291 r18482  
    2626                <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/>
    2727                <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/>
    28                 <attribute name="Plugin-Mainversion" value="2327"/>
     28                <attribute name="Plugin-Mainversion" value="2396"/>
    2929                <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/>
    3030            </manifest>
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java

    r18071 r18482  
    119119    @Override
    120120    public void paint(Graphics g, MapView mv) {
    121         Object[] nodes = data.nodes.toArray();
     121        Object[] nodes = data.getNodes().toArray();
    122122        // This loop renders all the bug icons
    123123        for (int i = 0; i < nodes.length; i++) {
     
    210210        double minDistanceSq = Double.MAX_VALUE;
    211211        Node minPrimitive = null;
    212         for (Node n : data.nodes) {
     212        for (Node n : data.getNodes()) {
    213213            if (!n.isUsable())
    214214                continue;
     
    232232            if(Main.map.mapView.getActiveLayer() == this) {
    233233                Node n = (Node) getNearestNode(e.getPoint());
    234                 if(data.nodes.contains(n)) {
     234                if(data.getNodes().contains(n)) {
    235235                    data.setSelected(n);
    236236                }
     
    252252                Node n = (Node) getNearestNode(e.getPoint());
    253253                OsbAction.setSelectedNode(n);
    254                 if(data.nodes.contains(n)) {
     254                if(data.getNodes().contains(n)) {
    255255                    PopupFactory.createPopup(n).show(e.getComponent(), e.getX(), e.getY());
    256256                }
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java

    r18147 r18482  
    161161
    162162            // display the parsed data
    163             if(!dataSet.nodes.isEmpty() && dialog.isDialogShowing()) {
     163            if(!dataSet.getNodes().isEmpty() && dialog.isDialogShowing()) {
    164164                // if the map layer has been closed, while we are requesting the osb db,
    165165                // we don't have to update the gui, because the user is not interested
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/api/DownloadAction.java

    r18291 r18482  
    6767
    6868        // clear dataset
    69         dataset.nodes.clear();
    70         dataset.relations.clear();
    71         dataset.ways.clear();
     69        dataset.clear();
    7270
    7371        // parse the data
  • applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java

    r17520 r18482  
    184184        Node lastNode = OsbAction.getSelectedNode();
    185185        model = new DefaultListModel();
    186         List<Node> sortedList = new ArrayList<Node>(dataset.nodes);
     186        List<Node> sortedList = new ArrayList<Node>(dataset.getNodes());
    187187        Collections.sort(sortedList, new BugComparator());
    188188
Note: See TracChangeset for help on using the changeset viewer.