Changeset 5897 in josm
- Timestamp:
- 2013-04-21T15:11:28+02:00 (12 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r5896 r5897 753 753 Collection<Layer> layers = new ArrayList<Layer>(Main.map.mapView.getAllLayers()); 754 754 for (Layer l: layers) { 755 Main.ma p.mapView.removeLayer(l);755 Main.main.removeLayer(l); 756 756 } 757 757 } -
trunk/src/org/openstreetmap/josm/actions/MergeLayerAction.java
r5297 r5897 47 47 } 48 48 targetLayer.mergeFrom(sourceLayer); 49 Main.ma p.mapView.removeLayer(sourceLayer);49 Main.main.removeLayer(sourceLayer); 50 50 layerMerged = true; 51 51 } -
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r5874 r5897 309 309 if (Main.map.mapView.getLayersOfType(OsmDataLayer.class).isEmpty()) { 310 310 if (errorLayer != null) { 311 Main.ma p.mapView.removeLayer(errorLayer);311 Main.main.removeLayer(errorLayer); 312 312 } 313 313 } -
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.