Changeset 10400 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2016-06-16T15:49:07+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/Main.java
r10395 r10400 102 102 import org.openstreetmap.josm.gui.progress.ProgressMonitorExecutor; 103 103 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 104 import org.openstreetmap.josm.gui.util.GuiHelper; 104 105 import org.openstreetmap.josm.gui.util.RedirectInputMap; 105 106 import org.openstreetmap.josm.gui.widgets.JMultilineLabel; … … 809 810 * the viewport isn't changed 810 811 */ 811 public final synchronized void addLayer(finalLayer layer, ProjectionBounds bounds) {812 public final void addLayer(Layer layer, ProjectionBounds bounds) { 812 813 addLayer(layer, bounds == null ? null : new ViewportData(bounds)); 813 814 } … … 821 822 * @param viewport the viewport to zoom to; can be null, then the viewport isn't changed 822 823 */ 823 public final synchronized void addLayer(finalLayer layer, ViewportData viewport) {824 public final void addLayer(Layer layer, ViewportData viewport) { 824 825 getLayerManager().addLayer(layer); 825 826 if (viewport != null) { … … 828 829 } 829 830 831 /** 832 * Creates the map frame. Call only in EDT Thread. 833 * @param firstLayer The first layer that was added. 834 * @param viewportData The initial viewport. Can be <code>null</code> to be automatically computed. 835 */ 830 836 public synchronized void createMapFrame(Layer firstLayer, ViewportData viewportData) { 837 GuiHelper.assertCallFromEdt(); 831 838 MapFrame mapFrame = new MapFrame(contentPanePrivate, viewportData); 832 839 setMapFrame(mapFrame);
Note:
See TracChangeset
for help on using the changeset viewer.