Changeset 20834 in osm for applications
- Timestamp:
- 2010-04-08T07:52:12+02:00 (15 years ago)
- Location:
- applications/editors/josm
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterAction.java
r20815 r20834 66 66 private static TrackReference currentTrack = null; 67 67 private static WaypointTableModel waypointTM = null; 68 public boolean inEvent = false; 68 69 69 70 public StopImporterAction() … … 128 129 else if ("stopImporter.settingsGPSTimeStart".equals(event.getActionCommand())) 129 130 { 130 if ((dialog.gpsTimeStartValid()) && (currentTrack != null)) 131 { 131 if ((!inEvent) && (dialog.gpsTimeStartValid()) && (currentTrack != null)) 132 Main.main.undoRedo.add(new TrackStoplistRelocateCommand(this)); 133 /* { 132 134 currentTrack.gpsSyncTime = dialog.getGpsTimeStart(); 133 135 currentTrack.relocateNodes(); 134 } 136 }*/ 135 137 } 136 138 else if ("stopImporter.settingsStopwatchStart".equals(event.getActionCommand())) 137 139 { 138 if ((dialog.stopwatchStartValid()) && (currentTrack != null)) 139 { 140 if ((!inEvent) && (dialog.stopwatchStartValid()) && (currentTrack != null)) 141 Main.main.undoRedo.add(new TrackStoplistRelocateCommand(this)); 142 /* { 140 143 currentTrack.stopwatchStart = dialog.getStopwatchStart(); 141 144 currentTrack.relocateNodes(); 142 } 145 }*/ 143 146 } 144 147 else if ("stopImporter.settingsTimeWindow".equals(event.getActionCommand())) -
applications/editors/josm/plugins/public_transport/src/public_transport/StopImporterDialog.java
r20742 r20834 575 575 } 576 576 577 public void setGpsTimeStart(String s) 578 { 579 tfGPSTimeStart.setText(s); 580 } 581 577 582 public boolean stopwatchStartValid() 578 583 { … … 593 598 { 594 599 return tfStopwatchStart.getText(); 600 } 601 602 public void setStopwatchStart(String s) 603 { 604 tfStopwatchStart.setText(s); 595 605 } 596 606
Note:
See TracChangeset
for help on using the changeset viewer.