Changeset 12630 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint
- Timestamp:
- 2017-08-24T00:15:51+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/mappaint
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r10453 r12630 14 14 import org.openstreetmap.josm.Main; 15 15 import org.openstreetmap.josm.actions.JosmAction; 16 import org.openstreetmap.josm.gui.MainApplication; 16 17 import org.openstreetmap.josm.gui.dialogs.MapPaintDialog; 17 18 import org.openstreetmap.josm.gui.layer.GpxLayer; … … 66 67 @Override 67 68 public void updateEnabledState() { 68 setEnabled(Main .isDisplayingMapView() && (Main.getLayerManager().getEditLayer() != null || mapHasGpxorMarkerLayer()));69 setEnabled(MainApplication.isDisplayingMapView() && (Main.getLayerManager().getEditLayer() != null || mapHasGpxorMarkerLayer())); 69 70 } 70 71 -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/MapImage.java
r12303 r12630 12 12 import javax.swing.ImageIcon; 13 13 14 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.MainApplication; 15 import org.openstreetmap.josm.gui.MapView; 15 16 import org.openstreetmap.josm.gui.mappaint.MapPaintStyles; 16 17 import org.openstreetmap.josm.gui.mappaint.StyleSource; … … 149 150 if (temporary) { 150 151 disabledImgCache = null; 151 Main.map.mapView.preferenceChanged(null); // otherwise repaint is ignored, because layer hasn't changed 152 Main.map.mapView.repaint(); 152 MapView mapView = MainApplication.getMap().mapView; 153 mapView.preferenceChanged(null); // otherwise repaint is ignored, because layer hasn't changed 154 mapView.repaint(); 153 155 } 154 156 temporary = false;
Note:
See TracChangeset
for help on using the changeset viewer.