Changeset 18021 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2021-07-14T20:52:02+02:00 (3 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainMenu.java
r17925 r18021 130 130 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeEvent; 131 131 import org.openstreetmap.josm.gui.layer.MainLayerManager.ActiveLayerChangeListener; 132 import org.openstreetmap.josm.gui.layer.geoimage.WikimediaCommonsLoader ;132 import org.openstreetmap.josm.gui.layer.geoimage.WikimediaCommonsLoader.WikimediaCommonsLoadImagesAction; 133 133 import org.openstreetmap.josm.gui.mappaint.MapPaintMenu; 134 134 import org.openstreetmap.josm.gui.preferences.imagery.ImageryPreference; … … 749 749 add(fileMenu, searchNotes); 750 750 add(fileMenu, downloadNotesInView); 751 add(fileMenu, new WikimediaCommonsLoad er.Action());751 add(fileMenu, new WikimediaCommonsLoadImagesAction()); 752 752 add(fileMenu, downloadReferrers); 753 753 add(fileMenu, update); -
trunk/src/org/openstreetmap/josm/gui/layer/geoimage/WikimediaCommonsLoader.java
r17880 r18021 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.layer.geoimage; 3 4 import static org.openstreetmap.josm.tools.I18n.tr; 5 6 import java.awt.event.ActionEvent; 7 import java.io.IOException; 8 import java.util.ArrayList; 9 import java.util.List; 10 11 import javax.xml.parsers.ParserConfigurationException; 12 import javax.xml.xpath.XPathExpressionException; 3 13 4 14 import org.openstreetmap.josm.actions.JosmAction; … … 10 20 import org.openstreetmap.josm.tools.Mediawiki; 11 21 import org.xml.sax.SAXException; 12 13 import javax.xml.parsers.ParserConfigurationException;14 import javax.xml.xpath.XPathExpressionException;15 import java.awt.event.ActionEvent;16 import java.io.IOException;17 import java.util.ArrayList;18 import java.util.List;19 20 import static org.openstreetmap.josm.tools.I18n.tr;21 22 22 23 /** … … 59 60 } 60 61 61 public static class Action extends JosmAction { 62 public Action() { 62 /** 63 * Load images from Wikimedia Commons 64 * @since 18021 65 */ 66 public static class WikimediaCommonsLoadImagesAction extends JosmAction { 67 /** 68 * Constructs a new {@code WikimediaCommonsLoadImagesAction} 69 */ 70 public WikimediaCommonsLoadImagesAction() { 63 71 super(tr("Load images from Wikimedia Commons"), "wikimedia_commons", null, null, false); 64 72 } … … 75 83 } 76 84 } 77 78 85 }
Note:
See TracChangeset
for help on using the changeset viewer.