Changeset 20839 in osm for applications/editors/josm/plugins/public_transport/src/public_transport/WaypointsNameCommand.java
- Timestamp:
- 2010-04-08T14:26:34+02:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/WaypointsNameCommand.java
r20835 r20839 42 42 waypointTM.nodes.elementAt(workingLine).put("name", name); 43 43 waypointTM.nodes.elementAt(workingLine).put("shelter", shelter); 44 waypointTM.inEvent = true; 44 } 45 waypointTM.inEvent = true; 46 if (name == null) 47 waypointTM.setValueAt("", workingLine, 1); 48 else 45 49 waypointTM.setValueAt(name, workingLine, 1); 46 if (shelter == null) 47 waypointTM.setValueAt("", workingLine, 2); 48 else 49 waypointTM.setValueAt(shelter, workingLine, 2); 50 waypointTM.inEvent = false; 51 } 50 if (shelter == null) 51 waypointTM.setValueAt("", workingLine, 2); 52 else 53 waypointTM.setValueAt(shelter, workingLine, 2); 54 waypointTM.inEvent = false; 52 55 return true; 53 56 } … … 59 62 waypointTM.nodes.elementAt(workingLine).put("name", oldName); 60 63 waypointTM.nodes.elementAt(workingLine).put("shelter", oldShelter); 61 waypointTM.inEvent = true; 64 } 65 waypointTM.inEvent = true; 66 if (oldName == null) 67 waypointTM.setValueAt("", workingLine, 1); 68 else 62 69 waypointTM.setValueAt(oldName, workingLine, 1); 63 if (oldShelter == null) 64 waypointTM.setValueAt("", workingLine, 2); 65 else 66 waypointTM.setValueAt(oldShelter, workingLine, 2); 67 waypointTM.inEvent = false; 68 } 70 if (oldShelter == null) 71 waypointTM.setValueAt("", workingLine, 2); 72 else 73 waypointTM.setValueAt(oldShelter, workingLine, 2); 74 waypointTM.inEvent = false; 69 75 } 70 76
Note:
See TracChangeset
for help on using the changeset viewer.