Changeset 1023 in josm for trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
- Timestamp:
- 2008-10-05T17:06:27+02:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/AutoScaleAction.java
r948 r1023 15 15 import org.openstreetmap.josm.data.osm.visitor.BoundingXYVisitor; 16 16 import org.openstreetmap.josm.gui.layer.Layer; 17 import org.openstreetmap.josm.tools.ShortCut; 17 18 18 19 /** … … 46 47 public AutoScaleAction(String mode) { 47 48 super(tr("Zoom to {0}", tr(mode)), "dialogs/autoscale/" + mode, tr("Zoom the view to {0}.", tr(mode)), 48 AutoScaleAction.getModeShortcut(mode), 0, true);49 ShortCut.registerShortCut("view:zoom"+mode, tr("View: Zoom to {0}", tr(mode)), getModeShortcut(mode), ShortCut.GROUP_EDIT), true); 49 50 String modeHelp = Character.toUpperCase(mode.charAt(0)) + mode.substring(1); 50 51 putValue("help", "Action/AutoScale/" + modeHelp); … … 79 80 for (OsmPrimitive osm : sel) 80 81 osm.visit(v); 81 // increase bbox by 0.001 degrees on each side. this is required 82 // especially if the bbox contains one single node, but helpful 82 // increase bbox by 0.001 degrees on each side. this is required 83 // especially if the bbox contains one single node, but helpful 83 84 // in most other cases as well. 84 85 v.enlargeBoundingBox();
Note:
See TracChangeset
for help on using the changeset viewer.