Changeset 7122 in josm for trunk/src/org
- Timestamp:
- 2014-05-14T09:22:50+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/FollowLineAction.java
r7121 r7122 6 6 import java.awt.event.ActionEvent; 7 7 import java.awt.event.KeyEvent; 8 import java.util.Arrays; 8 9 import java.util.Collection; 9 10 import java.util.List; … … 13 14 import org.openstreetmap.josm.actions.mapmode.DrawAction; 14 15 import org.openstreetmap.josm.command.ChangeCommand; 16 import org.openstreetmap.josm.command.SelectCommand; 17 import org.openstreetmap.josm.command.SequenceCommand; 15 18 import org.openstreetmap.josm.data.osm.Node; 16 19 import org.openstreetmap.josm.data.osm.OsmPrimitive; … … 110 113 newFollower.addNode(newPoint); 111 114 } 112 Main.main.undoRedo.add(new ChangeCommand(follower, newFollower)); 113 osmLayer.data.clearSelection(); 114 osmLayer.data.addSelected(newFollower); 115 osmLayer.data.addSelected(newPoint); 115 Main.main.undoRedo.add(new SequenceCommand(tr("Follow line"), 116 new ChangeCommand(follower, newFollower), 117 new SelectCommand(Arrays.asList(newFollower, newPoint)))); 116 118 // "viewport following" mode for tracing long features 117 119 // from aerial imagery or GPS tracks.
Note:
See TracChangeset
for help on using the changeset viewer.