Changeset 155 in josm for src/org/openstreetmap/josm/actions/AutoScaleAction.java
- Timestamp:
- 2006-10-08T17:29:58+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/actions/AutoScaleAction.java
r113 r155 27 27 28 28 private static final String[] modes = { 29 marktr("data"), 29 marktr("data"), 30 30 marktr("selection"), 31 31 marktr("layer"), … … 39 39 public Action(String mode) { 40 40 super(tr("Auto Scale: {0}", tr(mode)), ImageProvider.get("dialogs/autoscale/"+mode)); 41 String modeHelp = Character.toUpperCase(mode.charAt(0))+mode.substring(1); 42 putValue("help", "Action/AutoScale/"+modeHelp); 41 43 putValue(SHORT_DESCRIPTION, tr("Auto zoom the view (to {0}. Disabled if the view is moved)", tr(mode))); 42 44 this.mode = mode; … … 73 75 } else if (mode.equals("layer")) 74 76 mapFrame.mapView.getActiveLayer().visitBoundingBox(v); 75 else if (mode.equals("selection") || mode.equals("conflict")) { 77 else if (mode.equals("selection") || mode.equals("conflict")) { 76 78 Collection<OsmPrimitive> sel = mode.equals("selection") ? Main.ds.getSelected() : mapFrame.conflictDialog.conflicts.keySet(); 77 79 for (OsmPrimitive osm : sel)
Note:
See TracChangeset
for help on using the changeset viewer.