Changeset 6016 in josm for trunk/src/org
- Timestamp:
- 2013-06-21T09:43:29+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddWMSLayerPanel.java
r6000 r6016 12 12 import java.io.IOException; 13 13 import java.net.MalformedURLException; 14 import java.net.URL; 15 14 16 import javax.swing.DefaultComboBoxModel; 15 16 17 import javax.swing.JButton; 17 18 import javax.swing.JCheckBox; … … 97 98 wmsUrl.setEnabled(!endpoint.isSelected()); 98 99 if (endpoint.isSelected()) { 99 name.setText(wms.getServiceUrl().getHost()); 100 URL url = wms.getServiceUrl(); 101 if (url != null) { 102 name.setText(url.getHost()); 103 } 100 104 } else { 101 105 onLayerSelectionChanged();
Note:
See TracChangeset
for help on using the changeset viewer.