- Timestamp:
- 2016-09-13T14:47:35+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/layer
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/LayerManager.java
r10985 r10997 280 280 * @return The list of layers. 281 281 */ 282 public List<Layer> getLayers() {282 public synchronized List<Layer> getLayers() { 283 283 return Collections.unmodifiableList(new ArrayList<>(layers)); 284 284 } … … 295 295 * @return an unmodifiable list of layers of a certain type. 296 296 */ 297 public <T extends Layer> List<T> getLayersOfType(Class<T> ofType) {297 public synchronized <T extends Layer> List<T> getLayersOfType(Class<T> ofType) { 298 298 return new ArrayList<>(Utils.filteredCollection(getLayers(), ofType)); 299 299 } … … 418 418 * @since 10432 419 419 */ 420 public void resetState() {420 public synchronized void resetState() { 421 421 // some layer remove listeners remove other layers. 422 422 while (!getLayers().isEmpty()) { -
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r10972 r10997 372 372 373 373 @Override 374 public void resetState() {374 public synchronized void resetState() { 375 375 // active and edit layer are unset automatically 376 376 super.resetState();
Note:
See TracChangeset
for help on using the changeset viewer.