Ignore:
Timestamp:
2018-10-29T14:52:21+01:00 (7 years ago)
Author:
donvip
Message:

see #josm16682 - build 3 smaller native jar files instead of a giant one - speed up generation

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  
    2727import org.openstreetmap.josm.plugins.javafx.io.audio.JavaFxMediaPlayer;
    2828import org.openstreetmap.josm.tools.Logging;
    29 import org.openstreetmap.josm.tools.PlatformManager;
    3029
    3130/**
    3231 * OpenJFX plugin brings OpenJFX (JavaFX) to other plugins.
    3332 */
    34 public class JavaFxPlugin extends Plugin {
     33abstract class JavaFxPlugin extends Plugin {
    3534
    3635    /**
    3736     * Constructs a new {@code OpenJfxPlugin}.
    3837     * @param info plugin info
     38     * @param ext native libraries extension
    3939     */
    40     public JavaFxPlugin(PluginInformation info) {
     40    protected JavaFxPlugin(PluginInformation info, String ext) {
    4141        super(info);
    4242        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         }
    5143        extractNativeLibs(ext);
    5244        loadNativeLibs(ext);
Note: See TracChangeset for help on using the changeset viewer.