Changeset 5650 in josm


Ignore:
Timestamp:
2012-12-30T23:52:06+01:00 (12 years ago)
Author:
simon04
Message:

see #8254 - suggest WMS layer name based on selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java

    r5649 r5650  
    2525import org.openstreetmap.josm.io.imagery.WMSImagery;
    2626import org.openstreetmap.josm.tools.GBC;
     27import org.openstreetmap.josm.tools.Utils;
    2728
    2829public class AddWMSLayerPanel extends AddImageryPanel {
     
    9394                if (wms.getServiceUrl() != null) {
    9495                    wmsUrl.setText(wms.buildGetMapUrl(tree.getSelectedLayers()));
     96                    name.setText(wms.getServiceUrl().getHost() + ": " + Utils.join(", ", tree.getSelectedLayers()));
    9597                }
    9698                showBounds.setEnabled(tree.getSelectedLayers().size() == 1);
Note: See TracChangeset for help on using the changeset viewer.