kopia lustrzana https://github.com/JOSM/MapWithAI
Add icon for JOSM download window
Signed-off-by: Taylor Smock <tsmock@meta.com>pull/30/head v804
rodzic
3fdb8b0560
commit
9aab77dd4f
|
@ -3,6 +3,7 @@ package org.openstreetmap.josm.plugins.mapwithai.gui.download;
|
||||||
|
|
||||||
import static org.openstreetmap.josm.tools.I18n.tr;
|
import static org.openstreetmap.josm.tools.I18n.tr;
|
||||||
|
|
||||||
|
import javax.swing.Icon;
|
||||||
import javax.swing.JCheckBox;
|
import javax.swing.JCheckBox;
|
||||||
import javax.swing.event.ChangeListener;
|
import javax.swing.event.ChangeListener;
|
||||||
|
|
||||||
|
@ -19,6 +20,7 @@ import org.openstreetmap.josm.plugins.mapwithai.backend.MapWithAIDataUtils;
|
||||||
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAIInfo;
|
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAIInfo;
|
||||||
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo;
|
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo;
|
||||||
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo.LayerChangeListener;
|
import org.openstreetmap.josm.plugins.mapwithai.data.mapwithai.MapWithAILayerInfo.LayerChangeListener;
|
||||||
|
import org.openstreetmap.josm.tools.ImageProvider;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the MapWithAI download checkbox to the JOSM download UI
|
* Adds the MapWithAI download checkbox to the JOSM download UI
|
||||||
|
@ -27,6 +29,11 @@ public class MapWithAIDownloadSourceType implements IDownloadSourceType, LayerCh
|
||||||
static final BooleanProperty IS_ENABLED = new BooleanProperty("download.mapwithai.data", false);
|
static final BooleanProperty IS_ENABLED = new BooleanProperty("download.mapwithai.data", false);
|
||||||
JCheckBox cbDownloadMapWithAIData;
|
JCheckBox cbDownloadMapWithAIData;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Icon getIcon() {
|
||||||
|
return ImageProvider.get("mapwithai", ImageProvider.ImageSizes.SMALLICON);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public JCheckBox getCheckBox(ChangeListener checkboxChangeListener) {
|
public JCheckBox getCheckBox(ChangeListener checkboxChangeListener) {
|
||||||
if (cbDownloadMapWithAIData == null) {
|
if (cbDownloadMapWithAIData == null) {
|
||||||
|
|
Ładowanie…
Reference in New Issue