Re: [api-dev] where is my addon installed?

2005-12-17 Thread Daniel Naber
On Freitag 16 Dezember 2005 13:37, Daniel Boelzle wrote: but I also suggest to play around with the class loader resource mechanism, e.g. java.net.URL url =     MyClassFromMyJar.class.getResource(some-file-in-my.jar); to obtain an url at runtime. Thanks, it worked. The new version of

Re: [api-dev] where is my addon installed?

2005-12-16 Thread Jürgen Schmidt
Hi Daniel, Daniel Naber wrote: Hi, my addon (see http://www.danielnaber.de/languagetool/ for the base package, no OOo integration online yet) needs to know where it has been installed to load some external files that are part of its ZIP. I actually got this working in a different context

Re: [api-dev] where is my addon installed?

2005-12-16 Thread Daniel Boelzle
Hello Daniel, my addon (see http://www.danielnaber.de/languagetool/ for the base package, no OOo integration online yet) needs to know where it has been installed to load some external files that are part of its ZIP. I actually got this working in a different context (see

Re: [api-dev] where is my addon installed?

2005-12-16 Thread Daniel Naber
On Freitag 16 Dezember 2005 15:16, Stephan Bergmann wrote: The above mechanism is unreliable and should not be used: ClassLoader.getResource will first search the parent class loader for the resource (see the Sun Java documentation), so if some parent class loader happens to find another file

[api-dev] where is my addon installed?

2005-12-15 Thread Daniel Naber
Hi, my addon (see http://www.danielnaber.de/languagetool/ for the base package, no OOo integration online yet) needs to know where it has been installed to load some external files that are part of its ZIP. I actually got this working in a different context (see

Re: [api-dev] where is my addon installed?

2005-12-15 Thread Laurent Godard
Hi daniel, there is a code snippet available from Paolo It is StarBasic but the API calls remain the same http://codesnippets.services.openoffice.org/Office/Office.ArbitraryDeploy.snip HTH Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org Indesko http://www.indesko.com