Changeset 12627 in josm
- Timestamp:
- 2017-08-23T17:50:30+02:00 (7 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/Version.java
r12620 r12627 104 104 */ 105 105 public void init() { 106 try (InputStream stream = Main.class.getResourceAsStream("/REVISION")) {106 try (InputStream stream = Version.class.getResourceAsStream("/REVISION")) { 107 107 if (stream == null) { 108 108 Logging.warn(tr("The revision file ''/REVISION'' is missing.")); -
trunk/src/org/openstreetmap/josm/plugins/Plugin.java
r10616 r12627 147 147 final URL pluginJarUrl = Utils.fileToURL(pluginJar); 148 148 return AccessController.doPrivileged((PrivilegedAction<ClassLoader>) 149 () -> new URLClassLoader(new URL[] {pluginJarUrl}, Main.class.getClassLoader()));149 () -> new URLClassLoader(new URL[] {pluginJarUrl}, Plugin.class.getClassLoader())); 150 150 } 151 151 } -
trunk/src/org/openstreetmap/josm/plugins/PluginHandler.java
r12620 r12627 734 734 if (joinedPluginResourceCL == null) { 735 735 joinedPluginResourceCL = AccessController.doPrivileged((PrivilegedAction<DynamicURLClassLoader>) 736 () -> new DynamicURLClassLoader(new URL[0], Main.class.getClassLoader()));736 () -> new DynamicURLClassLoader(new URL[0], PluginHandler.class.getClassLoader())); 737 737 sources.add(0, joinedPluginResourceCL); 738 738 } … … 831 831 () -> new PluginClassLoader( 832 832 info.libraries.toArray(new URL[0]), 833 Main.class.getClassLoader(),833 PluginHandler.class.getClassLoader(), 834 834 null)); 835 835 classLoaders.put(info, cl); -
trunk/src/org/openstreetmap/josm/tools/I18n.java
r12620 r12627 28 28 29 29 import org.openstreetmap.gui.jmapviewer.FeatureAdapter.TranslationAdapter; 30 import org.openstreetmap.josm.Main;31 30 import org.openstreetmap.josm.gui.util.GuiHelper; 32 31 import org.openstreetmap.josm.gui.widgets.AbstractFileChooser; … … 363 362 364 363 private static URL getTranslationFile(String lang) { 365 return Main.class.getResource("/data/"+lang.replace('@', '-')+".lang");364 return I18n.class.getResource("/data/"+lang.replace('@', '-')+".lang"); 366 365 } 367 366 -
trunk/src/org/openstreetmap/josm/tools/OverpassTurboQueryWizard.java
r11003 r12627 10 10 import javax.script.ScriptException; 11 11 12 import org.openstreetmap.josm.Main;13 12 import org.openstreetmap.josm.io.CachedFile; 14 13 … … 43 42 try (CachedFile file = new CachedFile("resource://data/overpass-wizard.js"); 44 43 Reader reader = file.getContentReader()) { 45 engine.eval("var console = {error: " + Main.class.getCanonicalName() + ".warn};");44 engine.eval("var console = {error: " + Logging.class.getCanonicalName() + ".warn};"); 46 45 engine.eval("var global = {};"); 47 46 engine.eval(reader);
Note:
See TracChangeset
for help on using the changeset viewer.