Changeset 12636 in josm for trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
- Timestamp:
- 2017-08-24T22:53:50+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintMenu.java
r12630 r12636 12 12 import javax.swing.JMenu; 13 13 14 import org.openstreetmap.josm.Main;15 14 import org.openstreetmap.josm.actions.JosmAction; 16 15 import org.openstreetmap.josm.gui.MainApplication; … … 67 66 @Override 68 67 public void updateEnabledState() { 69 setEnabled(MainApplication.isDisplayingMapView() && (Main.getLayerManager().getEditLayer() != null || mapHasGpxorMarkerLayer())); 68 setEnabled(MainApplication.isDisplayingMapView() 69 && (MainApplication.getLayerManager().getEditLayer() != null || mapHasGpxorMarkerLayer())); 70 70 } 71 71 72 72 private static boolean mapHasGpxorMarkerLayer() { 73 for (Layer layer : Main .getLayerManager().getLayers()) {73 for (Layer layer : MainApplication.getLayerManager().getLayers()) { 74 74 if (layer instanceof GpxLayer || layer instanceof MarkerLayer) { 75 75 return true;
Note:
See TracChangeset
for help on using the changeset viewer.