Changeset 20791 in osm for applications/editors/josm
- Timestamp:
- 2010-04-06T10:55:39+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/public_transport/src/public_transport
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r20773 r20791 304 304 { 305 305 Node node = new Node(latLon); 306 if ("bus".equals(type)) 307 node.put("highway", "bus_stop"); 308 else if ("tram".equals(type)) 309 node.put("railway", "tram_stop"); 310 else if ("light_rail".equals(type)) 311 node.put("railway", "station"); 312 else if ("subway".equals(type)) 313 node.put("railway", "station"); 314 else if ("rail".equals(type)) 315 node.put("railway", "station"); 306 setTagsWrtType(node, type); 316 307 node.put("name", name); 317 308 if (Main.main.getCurrentDataSet() == null) -
applications/editors/josm/plugins/public_transport/src/public_transport/WaypointTableModel.java
r20772 r20791 9 9 import javax.swing.table.DefaultTableModel; 10 10 11 import org.openstreetmap.josm.Main; 11 12 import org.openstreetmap.josm.data.coor.LatLon; 12 13 import org.openstreetmap.josm.data.gpx.WayPoint; … … 17 18 { 18 19 private StopImporterAction controller = null; 20 public boolean inEvent = false; 19 21 public Vector< Node > nodes = new Vector< Node >(); 20 22 public Vector< LatLon > coors = new Vector< LatLon >(); … … 86 88 if (e.getType() == TableModelEvent.UPDATE) 87 89 { 90 if (inEvent) 91 return; 92 Main.main.undoRedo.add(new WaypointsNameCommand 93 (this, e.getFirstRow(), (String)getValueAt(e.getFirstRow(), 1))); 94 } 95 /* { 88 96 if (nodes.elementAt(e.getFirstRow()) != null) 89 97 { … … 91 99 node.put("name", (String)getValueAt(e.getFirstRow(), 1)); 92 100 } 93 } 101 }*/ 94 102 } 95 103 };
Note:
See TracChangeset
for help on using the changeset viewer.