Changeset 10784 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-08-11T17:17:36+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/MinimapDialog.java
r8732 r10784 12 12 import org.openstreetmap.josm.gui.MapView; 13 13 import org.openstreetmap.josm.gui.NavigatableComponent; 14 import org.openstreetmap.josm.gui.SideButton;15 14 import org.openstreetmap.josm.gui.bbox.BBoxChooser; 16 15 import org.openstreetmap.josm.gui.bbox.SlippyMapBBoxChooser; … … 21 20 public class MinimapDialog extends ToggleDialog implements NavigatableComponent.ZoomChangeListener, PropertyChangeListener { 22 21 23 pr otected final SlippyMapBBoxChooser slippyMap = new SlippyMapBBoxChooser();24 pr otectedboolean skipEvents;22 private SlippyMapBBoxChooser slippyMap; 23 private boolean skipEvents; 25 24 26 25 /** … … 29 28 public MinimapDialog() { 30 29 super(tr("Mini map"), "minimap", tr("Displays a small map of the current edit location"), null, 150); 31 createLayout(slippyMap, false, Collections.<SideButton>emptyList()); 30 } 31 32 private synchronized void initialize() { 33 if (slippyMap != null) { 34 return; 35 } 36 slippyMap = new SlippyMapBBoxChooser(); 37 createLayout(slippyMap, false, Collections.emptyList()); 32 38 slippyMap.setSizeButtonVisible(false); 33 39 slippyMap.addPropertyChangeListener(BBoxChooser.BBOX_PROP, this); … … 36 42 @Override 37 43 public void showDialog() { 44 initialize(); 38 45 NavigatableComponent.addZoomChangeListener(this); 39 46 super.showDialog();
Note:
See TracChangeset
for help on using the changeset viewer.