Cedric Bosdonnat wrote:
Hi all,

I'm trying to integrate the URE in the Eclipse integration and I'm
getting into some troubles.

Is there any way to bootstrap the URE as we can do for OOo ? I'ld like
to bootstrap the URE in order to use XTypeDescriptionEnumerationAccess
and get the content of its types.rdb and services.rdb. If I try to
bootstrap the URE as I'm doing for OOo, I get a message like
        "No office executable found"

You are probably using com.sun.star.comp.helper.Bootstrap.bootstrap. Despite being included in a URE jar, this is OOo-specific functionality, so it is by design that it fails for you. Poor design indeed, I agree...

Do I need to develop a specific component exporting XMain to bootstrap
the URE and query it's types ?

There are at least three approaches:

1 Start a native process (uno executable) and let it run your Java code as an XMain component (see test-javatest in ure/source/uretest/Makefile[.pln] for an example). That way, the uno executable takes care of all the UNO bootstrapping and your XMain component runs in an environment where the information from types.rdb and services.rdb is accessible.

2 Start a Java process that bootstraps a native UNO environment in process via com.sun.star.comp.helper.Bootstrap.defaultBootstrap_InitialComponentContext (see test-javanative in ure/source/uretest/Makefile[.pln] for an example). That way, the returned XComponentContext gives you access to an environment where the information from types.rdb and services.rdb is accessible.

3 If your are only interested in information about specific UNO types from types.rdb, and not the UNO services from services.rdb, some information about those types is also available in a plain Java UNO environment from com.sun.star.uno.Type (esp. Type.getTypeDescription).

-Stephan

Thanks for your help,
Cedric

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to