- Timestamp:
- 2016-07-28T23:47:16+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10634 r10669 30 30 import java.util.List; 31 31 import java.util.Set; 32 import java.util.TreeSet; 32 33 import java.util.concurrent.CopyOnWriteArrayList; 33 34 … … 1286 1287 */ 1287 1288 public String getLayerInformationForSourceTag() { 1288 final Collection<String> layerInfo = new ArrayList<>();1289 if (! getLayersOfType(GpxLayer.class).isEmpty()) {1289 final Set<String> layerInfo = new TreeSet<>(); 1290 if (!layerManager.getLayersOfType(GpxLayer.class).isEmpty()) { 1290 1291 // no i18n for international values 1291 1292 layerInfo.add("survey"); 1292 1293 } 1293 for (final GeoImageLayer i : getLayersOfType(GeoImageLayer.class)) {1294 for (final GeoImageLayer i : layerManager.getLayersOfType(GeoImageLayer.class)) { 1294 1295 if (i.isVisible()) { 1295 1296 layerInfo.add(i.getName()); 1296 1297 } 1297 1298 } 1298 for (final ImageryLayer i : getLayersOfType(ImageryLayer.class)) {1299 for (final ImageryLayer i : layerManager.getLayersOfType(ImageryLayer.class)) { 1299 1300 if (i.isVisible()) { 1300 1301 layerInfo.add(ImageryInfo.ImageryType.BING.equals(i.getInfo().getImageryType()) ? "Bing" : i.getName());
Note:
See TracChangeset
for help on using the changeset viewer.