protected final void onLayerSelectionChanged() { if (wms.getServiceUrl() != null) { wmsUrl.setText( wms.buildGetMapUrl(tree.getSelectedLayers(), (String) formats.getSelectedItem())); name.setText( wms.getServiceUrl().getHost() + ": " + Utils.join(", ", tree.getSelectedLayers())); } showBounds.setEnabled(tree.getSelectedLayers().size() == 1); }
@Override public ImageryInfo getImageryInfo() { final ImageryInfo info; if (endpoint.isSelected()) { info = new ImageryInfo(getImageryName(), getImageryRawUrl()); info.setImageryType(ImageryInfo.ImageryType.WMS_ENDPOINT); } else { info = wms.toImageryInfo(getImageryName(), tree.getSelectedLayers()); info.setUrl(getWmsUrl()); } return info; }