Changeset 15702 in josm


Ignore:
Timestamp:
2020-01-13T22:30:30+01:00 (4 years ago)
Author:
simon04
Message:

see #13901 - move Tag2Link to tools/

Location:
trunk
Files:
2 edited
3 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/MainInitialization.java

    r15677 r15702  
    2626import org.openstreetmap.josm.gui.tagging.presets.TaggingPresets;
    2727import org.openstreetmap.josm.gui.util.GuiHelper;
    28 import org.openstreetmap.josm.gui.util.Tag2Link;
    2928import org.openstreetmap.josm.io.FileWatcher;
    3029import org.openstreetmap.josm.io.OsmApi;
     
    4241import org.openstreetmap.josm.tools.RightAndLefthandTraffic;
    4342import org.openstreetmap.josm.tools.Shortcut;
     43import org.openstreetmap.josm.tools.Tag2Link;
    4444import org.openstreetmap.josm.tools.Territories;
    4545import org.openstreetmap.josm.tools.Utils;
  • trunk/src/org/openstreetmap/josm/gui/util/AbstractTag2LinkPopupListener.java

    r15692 r15702  
    99import javax.swing.event.PopupMenuEvent;
    1010import javax.swing.event.PopupMenuListener;
     11
     12import org.openstreetmap.josm.tools.Tag2Link;
    1113
    1214/**
  • trunk/src/org/openstreetmap/josm/tools/Tag2Link.java

    r15701 r15702  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.gui.util;
     2package org.openstreetmap.josm.tools;
    33
    44import static org.openstreetmap.josm.tools.I18n.tr;
     
    2121import org.openstreetmap.josm.data.osm.OsmUtils;
    2222import 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;
    2623
    2724/**
     
    5552     */
    5653    @FunctionalInterface
    57     interface LinkConsumer {
     54    public interface LinkConsumer {
    5855        /**
    5956         * Performs the operation on the given arguments.
     
    117114    }
    118115
    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) {
    120123
    121124        // Search
  • trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTest.java

    r15701 r15702  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.gui.util;
     2package org.openstreetmap.josm.tools;
    33
    44import java.util.ArrayList;
  • trunk/test/unit/org/openstreetmap/josm/tools/Tag2LinkTestIT.java

    r15701 r15702  
    11// License: GPL. For details, see LICENSE file.
    2 package org.openstreetmap.josm.gui.util;
     2package org.openstreetmap.josm.tools;
    33
    44import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
     
    2121
    2222    /**
    23      * Integration test of function {@link Tag2Link#initialize()}.
     23     * Integration test of function {@link org.openstreetmap.josm.tools.Tag2Link#initialize()}.
    2424     */
    2525    @Test
    2626    public void testInitialize() {
    27         Tag2Link.initialize();
     27        org.openstreetmap.josm.tools.Tag2Link.initialize();
    2828        Assert.assertTrue("obtails at least 40 rules", Tag2Link.wikidataRules.size() > 40);
    2929    }
Note: See TracChangeset for help on using the changeset viewer.