diff --git a/src/org/openstreetmap/josm/actions/AutoScaleAction.java b/src/org/openstreetmap/josm/actions/AutoScaleAction.java
index 2d6920c..684f3ab 100644
|
a
|
b
|
import static org.openstreetmap.josm.tools.I18n.tr;
|
| 7 | 7 | |
| 8 | 8 | import java.awt.event.ActionEvent; |
| 9 | 9 | import java.awt.event.KeyEvent; |
| | 10 | import java.awt.geom.Area; |
| 10 | 11 | import java.util.Collection; |
| 11 | 12 | import java.util.HashSet; |
| 12 | 13 | import java.util.List; |
| … |
… |
public class AutoScaleAction extends JosmAction {
|
| 35 | 36 | marktr("selection"), |
| 36 | 37 | marktr("conflict"), |
| 37 | 38 | marktr("download"), |
| | 39 | marktr("alldownload"), |
| 38 | 40 | marktr("previous"), |
| 39 | 41 | marktr("next")}; |
| 40 | 42 | |
| … |
… |
public class AutoScaleAction extends JosmAction {
|
| 87 | 89 | else if (mode.equals("selection")) { shortcut = KeyEvent.VK_3; } |
| 88 | 90 | else if (mode.equals("conflict")) { shortcut = KeyEvent.VK_4; } |
| 89 | 91 | else if (mode.equals("download")) { shortcut = KeyEvent.VK_5; } |
| | 92 | else if (mode.equals("alldownload")) { shortcut = KeyEvent.VK_6; } |
| 90 | 93 | else if (mode.equals("previous")) { shortcut = KeyEvent.VK_8; } |
| 91 | 94 | else if (mode.equals("next")) { shortcut = KeyEvent.VK_9; } |
| 92 | 95 | |
| … |
… |
public class AutoScaleAction extends JosmAction {
|
| 118 | 121 | putValue("help", ht("/Action/ZoomToSelection")); |
| 119 | 122 | } else if (mode.equals("conflict")) { |
| 120 | 123 | putValue("help", ht("/Action/ZoomToConflict")); |
| 121 | | } else if (mode.equals("download")) { |
| | 124 | } else if (mode.equals("download") || mode.equals("alldownload")) { |
| 122 | 125 | putValue("help", ht("/Action/ZoomToDownload")); |
| 123 | 126 | } else if (mode.equals("previous")) { |
| 124 | 127 | putValue("help", ht("/Action/ZoomToPrevious")); |
| … |
… |
public class AutoScaleAction extends JosmAction {
|
| 220 | 223 | e.printStackTrace(); |
| 221 | 224 | } |
| 222 | 225 | } |
| | 226 | } else if (mode.equals("alldownload")) { |
| | 227 | final Area dataSourceArea = Main.main.getCurrentDataSet().getDataSourceArea(); |
| | 228 | v.visit(new Bounds(dataSourceArea.getBounds2D())); |
| 223 | 229 | } |
| 224 | 230 | return v; |
| 225 | 231 | } |
| … |
… |
public class AutoScaleAction extends JosmAction {
|
| 239 | 245 | setEnabled(Main.map != null && Main.map.mapView != null && Main.map.mapView.hasZoomUndoEntries()); |
| 240 | 246 | } else if ("next".equals(mode)) { |
| 241 | 247 | setEnabled(Main.map != null && Main.map.mapView != null && Main.map.mapView.hasZoomRedoEntries()); |
| | 248 | } else if ("alldownload".equals(mode)) { |
| | 249 | setEnabled(Main.main != null && Main.main.getCurrentDataSet() != null && Main.main.getCurrentDataSet().getDataSourceArea() != null); |
| 242 | 250 | } else { |
| 243 | 251 | setEnabled( |
| 244 | 252 | Main.isDisplayingMapView() |