Changeset 18482 in osm for applications/editors/josm
- Timestamp:
- 2009-11-07T07:32:25+01:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/openstreetbugs
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/openstreetbugs/build.xml
r18291 r18482 26 26 <attribute name="Plugin-Description" value="Imports issues from OpenStreetBugs"/> 27 27 <attribute name="Plugin-Link" value="http://wiki.openstreetmap.org/index.php/JOSM/Plugins/OpenStreetBugs"/> 28 <attribute name="Plugin-Mainversion" value="23 27"/>28 <attribute name="Plugin-Mainversion" value="2396"/> 29 29 <attribute name="Plugin-Version" value="${version.entry.commit.revision}"/> 30 30 </manifest> -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbLayer.java
r18071 r18482 119 119 @Override 120 120 public void paint(Graphics g, MapView mv) { 121 Object[] nodes = data. nodes.toArray();121 Object[] nodes = data.getNodes().toArray(); 122 122 // This loop renders all the bug icons 123 123 for (int i = 0; i < nodes.length; i++) { … … 210 210 double minDistanceSq = Double.MAX_VALUE; 211 211 Node minPrimitive = null; 212 for (Node n : data. nodes) {212 for (Node n : data.getNodes()) { 213 213 if (!n.isUsable()) 214 214 continue; … … 232 232 if(Main.map.mapView.getActiveLayer() == this) { 233 233 Node n = (Node) getNearestNode(e.getPoint()); 234 if(data. nodes.contains(n)) {234 if(data.getNodes().contains(n)) { 235 235 data.setSelected(n); 236 236 } … … 252 252 Node n = (Node) getNearestNode(e.getPoint()); 253 253 OsbAction.setSelectedNode(n); 254 if(data. nodes.contains(n)) {254 if(data.getNodes().contains(n)) { 255 255 PopupFactory.createPopup(n).show(e.getComponent(), e.getX(), e.getY()); 256 256 } -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/OsbPlugin.java
r18147 r18482 161 161 162 162 // display the parsed data 163 if(!dataSet. nodes.isEmpty() && dialog.isDialogShowing()) {163 if(!dataSet.getNodes().isEmpty() && dialog.isDialogShowing()) { 164 164 // if the map layer has been closed, while we are requesting the osb db, 165 165 // 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 67 67 68 68 // clear dataset 69 dataset.nodes.clear(); 70 dataset.relations.clear(); 71 dataset.ways.clear(); 69 dataset.clear(); 72 70 73 71 // parse the data -
applications/editors/josm/plugins/openstreetbugs/src/org/openstreetmap/josm/plugins/osb/gui/OsbDialog.java
r17520 r18482 184 184 Node lastNode = OsbAction.getSelectedNode(); 185 185 model = new DefaultListModel(); 186 List<Node> sortedList = new ArrayList<Node>(dataset. nodes);186 List<Node> sortedList = new ArrayList<Node>(dataset.getNodes()); 187 187 Collections.sort(sortedList, new BugComparator()); 188 188
Note:
See TracChangeset
for help on using the changeset viewer.