if (targetLayers.isEmpty()) {
warnNoImageryLayers();
return null;
}
JosmComboBox<WMSLayer> layerList = new JosmComboBox<>(targetLayers.toArray(new WMSLayer[0]));
layerList.setRenderer(new LayerListCellRenderer());
layerList.setSelectedIndex(0);
JPanel pnl = new JPanel(new GridBagLayout());
pnl.add(new JLabel(tr("Please select the imagery layer.")), GBC.eol());
pnl.add(layerList, GBC.eol());
ExtendedDialog ed = new ExtendedDialog(Main.parent, tr("Select imagery layer"), new String[]{tr("Download"), tr("Cancel")});