Changeset 5897 in josm for trunk/src/org/openstreetmap/josm/gui
- Timestamp:
- 2013-04-21T15:11:28+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r5670 r5897 91 91 * The view control displayed. 92 92 */ 93 public MapView mapView;93 public final MapView mapView; 94 94 /** 95 95 * The toolbar with the action icons. To add new toggle dialog actions, use addToggleDialog … … 155 155 setSize(400,400); 156 156 setLayout(new BorderLayout()); 157 158 157 159 158 mapView = new MapView(contentPane, viewportData); -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r5891 r5897 57 57 import org.openstreetmap.josm.gui.SideButton; 58 58 import org.openstreetmap.josm.gui.help.HelpUtil; 59 import org.openstreetmap.josm.gui.io.SaveLayersDialog;60 59 import org.openstreetmap.josm.gui.layer.JumpToMarkerActions; 61 60 import org.openstreetmap.josm.gui.layer.Layer; … … 63 62 import org.openstreetmap.josm.gui.layer.OsmDataLayer; 64 63 import org.openstreetmap.josm.gui.util.GuiHelper; 64 import org.openstreetmap.josm.gui.widgets.JosmTextField; 65 65 import org.openstreetmap.josm.gui.widgets.PopupMenuLauncher; 66 66 import org.openstreetmap.josm.tools.CheckParameterUtil; … … 71 71 import org.openstreetmap.josm.tools.MultikeyShortcutAction.MultikeyInfo; 72 72 import org.openstreetmap.josm.tools.Shortcut; 73 import org.openstreetmap.josm.gui.widgets.JosmTextField;74 73 75 74 /** … … 92 91 throw new IllegalStateException("Dialog was already created"); 93 92 instance = new LayerListDialog(mapFrame); 94 95 93 } 96 94 -
trunk/src/org/openstreetmap/josm/gui/layer/ValidatorLayer.java
r5671 r5897 157 157 public void layerRemoved(Layer oldLayer) { 158 158 if (oldLayer instanceof OsmDataLayer && Main.map.mapView.getEditLayer() == null) { 159 Main.ma p.mapView.removeLayer(this);159 Main.main.removeLayer(this); 160 160 } else if (oldLayer == this) { 161 161 MapView.removeLayerChangeListener(this);
Note:
See TracChangeset
for help on using the changeset viewer.