Changeset 34703 in osm for applications/editors/josm/plugins/javafx/src/org
- Timestamp:
- 2018-10-29T14:52:21+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx
- Files:
-
- 3 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/javafx/src/org/openstreetmap/josm/plugins/javafx/JavaFxPlugin.java
r34701 r34703 27 27 import org.openstreetmap.josm.plugins.javafx.io.audio.JavaFxMediaPlayer; 28 28 import org.openstreetmap.josm.tools.Logging; 29 import org.openstreetmap.josm.tools.PlatformManager;30 29 31 30 /** 32 31 * OpenJFX plugin brings OpenJFX (JavaFX) to other plugins. 33 32 */ 34 publicclass JavaFxPlugin extends Plugin {33 abstract class JavaFxPlugin extends Plugin { 35 34 36 35 /** 37 36 * Constructs a new {@code OpenJfxPlugin}. 38 37 * @param info plugin info 38 * @param ext native libraries extension 39 39 */ 40 p ublicJavaFxPlugin(PluginInformation info) {40 protected JavaFxPlugin(PluginInformation info, String ext) { 41 41 super(info); 42 42 AudioPlayer.setSoundPlayerClass(JavaFxMediaPlayer.class); 43 String ext = null;44 if (PlatformManager.isPlatformWindows()) {45 ext = ".dll";46 } else if (PlatformManager.isPlatformUnixoid()) {47 ext = ".so";48 } else if (PlatformManager.isPlatformOsx()) {49 ext = ".dylib";50 }51 43 extractNativeLibs(ext); 52 44 loadNativeLibs(ext);
Note:
See TracChangeset
for help on using the changeset viewer.