summaryrefslogtreecommitdiff
path: root/scripting/java
AgeCommit message (Collapse)Author
2014-03-10scripting: simplify deprecated XTypeProvider.getImplementationIdStephan Bergmann
Change-Id: If0d9a6f1c56dc560df078eb59313aaba393ee372
2014-02-26Remove visual noise from scriptingAlexander Wilms
Change-Id: Id9f177a20d911ce1e041407aa556c9cf13f0efc8 Reviewed-on: https://gerrit.libreoffice.org/8305 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-06typo fixes in commentsAndras Timar
Change-Id: Idd49478d59cd062118fbf8e99d1c8bc5250013fc
2013-12-20Spelling correction: s/retrive/retrieve/Tor Lillqvist
Change-Id: I96845d358765e2d2507763a9b15a30388b32bc6b
2013-09-26typo fixes in commentsAndras Timar
Change-Id: Iaadec33715f8e0e0c6595c5e684606905274fdab
2013-08-18Use subfolder names from <config_folders.h>Tor Lillqvist
Change all instances of hardcoded "program", "share" etc subfolder names to use those from <config_folders.h> instead. In normal builds, the end result will not change. Change-Id: I91c95cd8e482818be67307e889ae6df887763f53
2013-06-03re-base on ALv2 code. Includes:Michael Meeks
Patches contributed by Mathias Bauer gnumake4 work variously http://svn.apache.org/viewvc?view=revision&revision=1394707 http://svn.apache.org/viewvc?view=revision&revision=1394326 http://svn.apache.org/viewvc?view=revision&revision=1397337 http://svn.apache.org/viewvc?view=revision&revision=1397315 http://svn.apache.org/viewvc?view=revision&revision=1396797 Patches contributed by Andre Fischer Fixed getcsym.awk to handle #-comments that contain special regexp chars. http://svn.apache.org/viewvc?view=revision&revision=1230971 118778: Added ADDITIONAL_REPOSITORIES environment variable and its automatic setup in configure. http://svn.apache.org/viewvc?view=revision&revision=1232004 118160: Added external CoinMP library. http://svn.apache.org/viewvc?view=revision&revision=1233909 Patches contributed by Herbert Duerr #i119168# use generic LICENSE file for langpacks and sdks http://svn.apache.org/viewvc?view=revision&revision=1310178 macosxotoolhelper: need to quote perl regexp if it may contain regexp metachars http://svn.apache.org/viewvc?view=revision&revision=1183367 allow gbuild with empty sysroot on linux http://svn.apache.org/viewvc?view=revision&revision=1179186 Patches contributed by Ingo Schmidt native373: #164472# improvements for msi database http://svn.apache.org/viewvc?view=revision&revision=1167540 http://svn.apache.org/viewvc?view=revision&revision=1167539 Patches contributed by Jurgen Schmidt adapt setup package scripts to handle special DS_Store file for developer snapshot builds http://svn.apache.org/viewvc?view=revision&revision=1232430 imported patch extensions_i117681.patch http://svn.apache.org/viewvc?view=revision&revision=1172102 Patches contributed by Michael Stahl gbuild: RepositoryFixes.mk should be optional http://svn.apache.org/viewvc?view=revision&revision=1166123 xslt filter: remove the FLA horror wordml import filter: replace FLA usage with plain XSLT http://svn.apache.org/viewvc?view=revision&revision=1363727 Patch contributed by Oliver-Rainer Wittmann i#88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 Remove lots of OS2 conditionals, re-extract Rhino Java, unwind cppunit pieces, cleanup Mac image bits, remove coin-mp and re-package lpsolve, Oxygen & Crystal, fixup qstart bits, expand MPLv2 subset checking. Change-Id: Iad5c8a76399620b892671633c0d8c29996db3564
2013-05-06Java cleanup, delete some dead codeNoel Grandin
Change-Id: I4423cc7ec49769e256f73d9b7fba7b78f84f932f
2013-05-06Java cleanup, convert Hashtable to HashMapNoel Grandin
Change-Id: If8a9c0c3a4b357fb9c0ff096f44ed1b44ebbcef4
2013-05-06Java cleanup, convert more Vector to ArrayListNoel Grandin
Change-Id: Icb807382eaf50f515f2c9dfada0c061414baed33
2013-05-06Java cleanup, Convert Vector to ArrayListNoel Grandin
Change-Id: I323a6625f93347e69f3114fc10cb04dc759a539f
2013-05-06fix typoNoel Grandin
Change-Id: I228a93e2b701fa787fc6d7d721acaf1f6e010b89
2013-04-26Java cleanup, access static methods using correct syntaxNoel Grandin
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
2013-04-26From the context of the code, this field should not be staticNoel Grandin
Change-Id: Idf092b0edf2c538d21b189cd742407bf2fd39fa7
2013-04-19Java cleanup, remove the rest of the unnecessary castsNoel Grandin
Change-Id: Ia61d250f6b3711abc29569c5ece38a6f87e38daa Reviewed-on: https://gerrit.libreoffice.org/3432 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
2013-02-23Fix typo accessable/accessibleJulien Nabet
Change-Id: I2f6d00a6361243a52a593acaaf2bf624d8a2730e
2013-02-22[Uu]sefull -> [Uu]sefulJulien Nabet
Change-Id: I5dad83789ff9b6815561208679a5e19821041e1f
2012-11-26API CHANGE: com.sun.star.lang.IllegalArgumentExceptionMichael Stahl
... derives from com.sun.star.uno.RuntimeException instead of com.sun.star.uno.Exception. Only test that breaks with this change is jurt_uno/AnyConverter_Test, which for mysterious reasons effectively tests that IllegalArgumentException is a subclass of Exception and not RuntimeException. Presumably this is just a generic exception test that happens to use IllegalArgumentException. Some further testing indicates there are no problems expected at runtime: Running "make subsequentcheck" with all Java test code compiled against a ridl.jar that does not contain the change, running against a soffice that uses ridl.jar and rdbs with the change + ridl.jar with the change on the test side yields exactly the same AnyConverter_Test failure, with no other failures. Change-Id: Iad183de76ec7e0d56648084e97cdcc160b5b033d
2012-10-26fdo#49517: Revert "fdo#46102: Load Java scripts with class loaders [...]"Stephan Bergmann
This reverts commit dd6c4f4db1d62268d73e09ae52d23f760a967dcc "fdo#46102: Load Java scripts with class loaders that actually find them." That commit broke support for macros embedded in documents (as new java.net.URL("vnd.sun.star.tdoc:...") throws a MalformedURLExcetpion), and it looks like that commit was not necessary after all -- or rather that what it tried to work around must have been some other problem that has been fixed meanwhile. "It is unclear to me how the Java script provider shall ever have found the script jars in the past" indicates that something must have been fishy, and what I failed to notice back then is that createURL creates java.net.URL instances with a UCBStreamHandler that does allow to obtain content from weird-looking URLs. Anyway, with that reverted, all three following scenarios work on both current master (towards LO 3.7) and libreoffice-3-6 (towards LO 3.6.4); I haven't yet come around to test on libreoffice-3-5: 1 Stock macros, "Tools - Macros - Run Macro... - LibreOffice Macros - HelloWorld", running all of the four "helloworld.bsh", "helloworld.js", "HelloWorldPyhton", and "org.libreoffice.example.java_scripts.HelloWorld.printHW". 2 Per-document macros, loading test.odt attached to fdo#49517, then "Tools - Macros - Run Macro... - test.odt - HelloWorld", running "org.libreoffice.example.java_scripts.HelloWorld.printHW". 3 Extension macros, installing ScriptDispatch.oxt attached to fdo#46012 as shared extension, then loading StartScriptDispatch.odt attached to fdo#46012 and pressing the "Start Java via ScriptProvider" button. Change-Id: I31cd16b3720ffeb1058722d4d1fdffb773f8a067
2012-09-26fdo#51304: Remove the author of some java source filesMarcos Paulo de Souza
This patch remove some '@author' for Java souce files, and removes some commented code founded when removing the '@author'. Change-Id: I7bff1507212e967069f3d18e6c1040f69501694a Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2012-09-14Improvement on previous commit, UCB clean upStephan Bergmann
* As UCB is only ever initialized with "Local"/"Office", remove this configuration vector completely. The "create" ctor creates an instance internally initialized with those "Local"/"Office" keys. Special (test) code can still instantiate an uninitialized one via plain createInstance. And for backwards compatilibity process startup still ensures to create an initialized instance early, in case there is still code out there (in extensions) that later calls plain createInstance and expects to get the already-initialized (single) instance. * XInitialization is an "implementation detail" of the UniversalContentBroker service, do not expose in XUniversalContentBroker. * ucbhelper/configurationkeys.hxx is no longer needed and is removed. * ucbhelper/contentbroker.hxx is an empty wrapper and is removed; however, that requires ucbhelper::Content constructors to take explicit XComponentContext arguments now. * The only remaining code in ucbhelper/source/client/contentbroker.cxx is Android-only InitUCBHelper. Is that relevant still? Change-Id: I3f7bddd0456bffbcd13590c66d9011915c760f28
2012-09-10Java cleanup, convert ArrayList and Vector to use genericsNoel Grandin
Change-Id: Ic668b46872ee0bfd259ca335aed9d68fb545c3a4
2012-09-10Java cleanup, remove unnecessary importsNoel Grandin
I guess I missed some last time :-) Change-Id: I164a8baa07850f783b8cdf2e7f3eeaac53a3d29b
2012-09-10Java5 update, Convert ArrayList and Vector code to use genericsNoel Grandin
Change-Id: I6cf6fa8e55005ffdc1d173aeee1e374efbb214fd
2012-08-28Java cleanup - remove unused importsNoel Grandin
Change-Id: I7eb24b2d552ec5da752b58ba790ed58fb88728b0
2012-08-28Java cleanup - remove unnecessary semi-colonsNoel Grandin
Change-Id: I20a79d3d8f71dc48fc2662563f9c890dd3d94aac
2012-08-20Java5 updates - convert to genericsNoel Grandin
Change-Id: I039e51958865a7ea000034e7bf765f64d49689cd
2012-08-20Java update - fix various javadoc issuesNoel Grandin
Along the way, remove some javadoc comments that are completely incorrect. Change-Id: I02f96b6cbe665d2c10bd6ee245a7d8e2eef0f755
2012-08-07remove bogus date informationThomas Arnhold
Change-Id: I2789153ee35f4ec10e760f9412eb7d379de031bf
2012-07-06re-base on ALv2 code. Includes:Michael Meeks
remove onlineregistration with dependencies Patch contributed by Juergen Schmidt http://svn.apache.org/viewvc?view=revision&revision=1249245
2012-06-29Java5 updates - update code to use genericsNoel Grandin
This is all of the code I missed in my first set of patches. Change-Id: I8c7c9e5ac28dc3c2f3ac062c806fbf0787c997bd
2012-06-29re-base on ALv2 code.Michael Meeks
2012-06-26re-base on ALv2 code.Michael Meeks
2012-06-22.xml files don't need executable bitsMichael Stahl
Change-Id: I399d086181a9f513cd95157e815551f0be9b9e95
2012-06-22manifest.mf files don't need executable bitsMichael Stahl
Change-Id: I18868b542524f0e94ec7b06e753ee2385ede9a95
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: I6c145e984c885c7e06caa1c27bfb354ea49ad9ce
2012-06-21re-base on ALv2 code.Michael Meeks
Change-Id: Ice06e639213aeb6f7f23cbf4634947dd25613db1
2012-06-19typo: paramters, paramaters -> parametersAndras Timar
Change-Id: If58683331c50f2a95204e8e2dea11edbef3ccb63
2012-04-26Change implementation names of script providers...Stephan Bergmann
...that are no longer bundled extensions. Otherwise, old user data where these were still recorded as bundled extensions could cause execeptions at start up about duplicate implementations.
2012-04-26Typo in service nameStephan Bergmann
...detected now that the default service manager XContentEnumerationAccess no creates its own XServiceInfo instances.
2012-03-23.html files don't need executable bitsMichael Stahl
2012-03-23.component files don't need executable bitsMichael Stahl
2012-03-23.gif files don't need executable bitsMichael Stahl
2012-03-23Improve error reportingStephan Bergmann
2012-03-23Java new cannot return nullStephan Bergmann
2012-03-23Improve error reportingStephan Bergmann
2012-03-23fdo#46102: Load Java scripts with class loaders that actually find themStephan Bergmann
ScriptMetaData.createURL produces weird URLs (ending in "/ucb/", and potentially still containing vnd.sun.star.expand: prefix) that are apparently good for loading documents for editing via UCBStreamHandler, but cannot meaningfully be passed to a URLClassLoader. It is unclear to me how the Java script provider shall ever have found the script jars in the past.
2012-03-23scripting: don't need x bits for theseMichael Stahl
2012-03-22fdo#46102: Fix scripting jar manifests after gbuild'ificationStephan Bergmann
2012-01-11fix prefix of command line switches (-- instead of -)Andras Timar