Changeset 34701 in osm for applications/editors/josm
- Timestamp:
- 2018-10-28T17:28:36+01:00 (6 years ago)
- Location:
- applications/editors/josm/plugins/javafx
- Files:
-
- 2 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/javafx/.classpath
r34700 r34701 6 6 <classpathentry exported="true" kind="lib" path="lib/javafx-base-11-win.jar" sourcepath="lib/javafx-base-11-sources.jar"> 7 7 <attributes> 8 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-base-11-javadoc.jar!/"/>8 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-base-11-javadoc.jar!/"/> 9 9 </attributes> 10 10 </classpathentry> 11 11 <classpathentry exported="true" kind="lib" path="lib/javafx-controls-11-win.jar" sourcepath="lib/javafx-controls-11-sources.jar"> 12 12 <attributes> 13 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-controls-11-javadoc.jar!/"/>13 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-controls-11-javadoc.jar!/"/> 14 14 </attributes> 15 15 </classpathentry> 16 16 <classpathentry exported="true" kind="lib" path="lib/javafx-fxml-11-win.jar" sourcepath="lib/javafx-fxml-11-sources.jar"> 17 17 <attributes> 18 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-fxml-11-javadoc.jar!/"/>18 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-fxml-11-javadoc.jar!/"/> 19 19 </attributes> 20 20 </classpathentry> 21 21 <classpathentry exported="true" kind="lib" path="lib/javafx-graphics-11-win.jar" sourcepath="lib/javafx-graphics-11-sources.jar"> 22 22 <attributes> 23 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-graphics-11-javadoc.jar!/"/>23 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-graphics-11-javadoc.jar!/"/> 24 24 </attributes> 25 25 </classpathentry> 26 26 <classpathentry exported="true" kind="lib" path="lib/javafx-media-11-win.jar" sourcepath="lib/javafx-media-11-sources.jar"> 27 27 <attributes> 28 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-media-11-javadoc.jar!/"/>28 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-media-11-javadoc.jar!/"/> 29 29 </attributes> 30 30 </classpathentry> 31 31 <classpathentry exported="true" kind="lib" path="lib/javafx-swing-11-win.jar" sourcepath="lib/javafx-swing-11-sources.jar"> 32 32 <attributes> 33 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-swing-11-javadoc.jar!/"/>33 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-swing-11-javadoc.jar!/"/> 34 34 </attributes> 35 35 </classpathentry> 36 36 <classpathentry exported="true" kind="lib" path="lib/javafx-web-11-win.jar" sourcepath="lib/javafx-web-11-sources.jar"> 37 37 <attributes> 38 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM- openjfx/lib/javafx-web-11-javadoc.jar!/"/>38 <attribute name="javadoc_location" value="jar:platform:/resource/JOSM-javafx/lib/javafx-web-11-javadoc.jar!/"/> 39 39 </attributes> 40 40 </classpathentry> -
applications/editors/josm/plugins/javafx/build.xml
r34700 r34701 10 10 --> 11 11 <property name="plugin.author" value="Don-vip"/> 12 <property name="plugin.class" value="org.openstreetmap.josm.plugins. openjfx.OpenJfxPlugin"/>12 <property name="plugin.class" value="org.openstreetmap.josm.plugins.javafx.JavaFxPlugin"/> 13 13 <property name="plugin.description" value="Provides the OpenJFX (JavaFX) library for JOSM core and other JOSM plugins. Provides additional features such as MP3 audio playback."/> 14 14 <property name="plugin.minimum.java.version" value="11"/> 15 <property name="plugin.provides" value="javafx"/> 15 16 <!--<property name="plugin.icon" value="..."/>--> 16 17 <!--<property name="plugin.link" value="..."/>--> -
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.