Ignore:
Timestamp:
2017-08-23T17:50:30+02:00 (2 years ago)
Author:
Don-vip
Message:

see #15182 - remove unneeded imports to Main

Location:
trunk/src/org/openstreetmap/josm/tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/I18n.java

    r12620 r12627  
    2828
    2929import org.openstreetmap.gui.jmapviewer.FeatureAdapter.TranslationAdapter;
    30 import org.openstreetmap.josm.Main;
    3130import org.openstreetmap.josm.gui.util.GuiHelper;
    3231import org.openstreetmap.josm.gui.widgets.AbstractFileChooser;
     
    363362
    364363    private static URL getTranslationFile(String lang) {
    365         return Main.class.getResource("/data/"+lang.replace('@', '-')+".lang");
     364        return I18n.class.getResource("/data/"+lang.replace('@', '-')+".lang");
    366365    }
    367366
  • trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java

    r11003 r12627  
    1010import javax.script.ScriptException;
    1111
    12 import org.openstreetmap.josm.Main;
    1312import org.openstreetmap.josm.io.CachedFile;
    1413
     
    4342        try (CachedFile file = new CachedFile("resource://data/overpass-wizard.js");
    4443             Reader reader = file.getContentReader()) {
    45             engine.eval("var console = {error: " + Main.class.getCanonicalName() + ".warn};");
     44            engine.eval("var console = {error: " + Logging.class.getCanonicalName() + ".warn};");
    4645            engine.eval("var global = {};");
    4746            engine.eval(reader);
Note: See TracChangeset for help on using the changeset viewer.