Changeset 34701 in osm for applications/editors/josm/plugins/javafx/src/org
- Timestamp:
- 2018-10-28T17:28:36+01:00 (6 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/JavaFxPlugin.java
r34700 r34701 32 32 * OpenJFX plugin brings OpenJFX (JavaFX) to other plugins. 33 33 */ 34 public class Java fxPlugin extends Plugin {34 public class JavaFxPlugin extends Plugin { 35 35 36 36 /** … … 38 38 * @param info plugin info 39 39 */ 40 public Java fxPlugin(PluginInformation info) {40 public JavaFxPlugin(PluginInformation info) { 41 41 super(info); 42 42 AudioPlayer.setSoundPlayerClass(JavaFxMediaPlayer.class); … … 54 54 55 55 private static void extractNativeLibs(String ext) { 56 CodeSource src = Java fxPlugin.class.getProtectionDomain().getCodeSource();56 CodeSource src = JavaFxPlugin.class.getProtectionDomain().getCodeSource(); 57 57 if (src != null) { 58 58 try (ZipFile zf = new ZipFile(Paths.get(src.getLocation().toURI()).toFile(), StandardCharsets.UTF_8)) { … … 77 77 } 78 78 } else { 79 Logging.error("Unable to locate openjfx jar file");79 Logging.error("Unable to locate javafx jar file"); 80 80 } 81 81 } 82 82 83 83 private static Path getNativeDir() throws IOException { 84 return Files.createDirectories(new File(Preferences.main().getPluginsDirectory(), " openjfx").toPath());84 return Files.createDirectories(new File(Preferences.main().getPluginsDirectory(), "javafx").toPath()); 85 85 } 86 86
Note:
See TracChangeset
for help on using the changeset viewer.