Changeset 15702 in josm
- Timestamp:
- 2020-01-13T22:30:30+01:00 (5 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/MainInitialization.java
r15677 r15702 26 26 import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets; 27 27 import org.openstreetmap.josm.gui.util.GuiHelper; 28 import org.openstreetmap.josm.gui.util.Tag2Link;29 28 import org.openstreetmap.josm.io.FileWatcher; 30 29 import org.openstreetmap.josm.io.OsmApi; … … 42 41 import org.openstreetmap.josm.tools.RightAndLefthandTraffic; 43 42 import org.openstreetmap.josm.tools.Shortcut; 43 import org.openstreetmap.josm.tools.Tag2Link; 44 44 import org.openstreetmap.josm.tools.Territories; 45 45 import org.openstreetmap.josm.tools.Utils; -
trunk/src/org/openstreetmap/josm/gui/util/AbstractTag2LinkPopupListener.java
r15692 r15702 9 9 import javax.swing.event.PopupMenuEvent; 10 10 import javax.swing.event.PopupMenuListener; 11 12 import org.openstreetmap.josm.tools.Tag2Link; 11 13 12 14 /** -
trunk/src/org/openstreetmap/josm/tools/Tag2Link.java
r15701 r15702 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm. gui.util;2 package org.openstreetmap.josm.tools; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 21 21 import org.openstreetmap.josm.data.osm.OsmUtils; 22 22 import org.openstreetmap.josm.io.CachedFile; 23 import org.openstreetmap.josm.tools.Logging;24 import org.openstreetmap.josm.tools.MultiMap;25 import org.openstreetmap.josm.tools.Utils;26 23 27 24 /** … … 55 52 */ 56 53 @FunctionalInterface 57 interface LinkConsumer { 54 public interface LinkConsumer { 58 55 /** 59 56 * Performs the operation on the given arguments. … … 117 114 } 118 115 119 static void getLinksForTag(String key, String value, LinkConsumer linkConsumer) { 116 /** 117 * Generates the links for the tag given by {@code key} and {@code value}, and sends 0, 1 or more links to the {@code linkConsumer}. 118 * @param key the tag key 119 * @param value the tag value 120 * @param linkConsumer the receiver of the generated links 121 */ 122 public static void getLinksForTag(String key, String value, LinkConsumer linkConsumer) { 120 123 121 124 // Search -
trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTest.java
r15701 r15702 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm. gui.util;2 package org.openstreetmap.josm.tools; 3 3 4 4 import java.util.ArrayList; -
trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTestIT.java
r15701 r15702 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm. gui.util;2 package org.openstreetmap.josm.tools; 3 3 4 4 import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; … … 21 21 22 22 /** 23 * Integration test of function {@link Tag2Link#initialize()}. 23 * Integration test of function {@link org.openstreetmap.josm.tools.Tag2Link#initialize()}. 24 24 */ 25 25 @Test 26 26 public void testInitialize() { 27 Tag2Link.initialize(); 27 org.openstreetmap.josm.tools.Tag2Link.initialize(); 28 28 Assert.assertTrue("obtails at least 40 rules", Tag2Link.wikidataRules.size() > 40); 29 29 }
Note:
See TracChangeset
for help on using the changeset viewer.