forked from amazingfate/loongoffice
...they contained no class files anymore, due to missing gb_Jar_set_packageroot calls. However, those calls only work for subdirectories, i.e., the example .java files need to be put into a package (I chose org.libreoffice.example.java_scripts) for all of them). This in turn required adaption of the parcel-descriptor.xml files; not sure what the logicalname entries there are good for if anything -- the macro names at "Tools - Macros - Run Macro..." now unfortunately(?) contain the fully qualified paths for the HelloWorld, HighlightText, and MemoryUpdate examples. There are additional examples at scripting/examples/java/ that apparently do not get packaged (but I adapted them anyway).
17 lines
601 B
XML
Executable File
17 lines
601 B
XML
Executable File
<?xml version="1.0" encoding="UTF-8"?>
|
|
<parcel language="Java" xmlns:parcel="scripting.dtd">
|
|
<script language="Java">
|
|
<locale lang="en">
|
|
<displayname value="MemoryUtils.MemUsage"/>
|
|
<description>
|
|
Text highlighting
|
|
</description>
|
|
</locale>
|
|
<functionname value="org.libreoffice.example.java_scripts.MemoryUsage.updateMemoryUsage"/>
|
|
<logicalname value="MemoryUtils.MemUsage"/>
|
|
<languagedepprops>
|
|
<prop name="classpath" value="MemoryUsage.jar"/>
|
|
</languagedepprops>
|
|
</script>
|
|
</parcel>
|