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;
}