diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2011-11-14 22:07:23 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2011-11-14 22:07:23 +0100 |
commit | 8b75883b87c9f7989f98fb413f5e51200c52891c (patch) | |
tree | 5eaf6d052d25c61654b4e06ffb67784eab9d263b /qadevOOo | |
parent | f72516ed25d25963f497396985d56344eb3ff465 (diff) |
Simplified some uses of css.configuration.theDefaultProvider.
* Retro-added new-style UNOIDL singleton specification for it, for easy
instantiation.
* Plus new comphelper::getComponentContext to map from XMultiServiceFactory
to XComponentContext.
Diffstat (limited to 'qadevOOo')
-rw-r--r-- | qadevOOo/tests/java/mod/_configmgr/DefaultProvider.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/qadevOOo/tests/java/mod/_configmgr/DefaultProvider.java b/qadevOOo/tests/java/mod/_configmgr/DefaultProvider.java index f8a023ea2f12..b7eefdb445b9 100644 --- a/qadevOOo/tests/java/mod/_configmgr/DefaultProvider.java +++ b/qadevOOo/tests/java/mod/_configmgr/DefaultProvider.java @@ -27,6 +27,7 @@ package mod._configmgr; +import com.sun.star.configuration.theDefaultProvider; import com.sun.star.uno.AnyConverter; import com.sun.star.uno.XInterface; import lib.TestCase; @@ -44,9 +45,7 @@ public final class DefaultProvider extends TestCase { return ProviderTestEnvironment.create( AnyConverter.toObject( XInterface.class, - tParam.getComponentContext().getValueByName( - "/singletons/" + - "com.sun.star.configuration.theDefaultProvider"))); + theDefaultProvider.get(tParam.getComponentContext()))); } catch (com.sun.star.lang.IllegalArgumentException e) { throw new RuntimeException(e); } |