From 382b013275f0dd81d6bbf299782f59d2735c5beb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 8 Jan 2014 09:10:29 +0100 Subject: Some ConfigurationProvider -> theDefaultProvider simplifications Change-Id: I7c25cd94f8a1ca339f7423c26f21f13c7a68906d --- .../OfficeDev/DisableCommands/DisableCommandsTest.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'odk/examples/DevelopersGuide/OfficeDev') diff --git a/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java b/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java index f81c59afca31..2f161b42708e 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DisableCommands/DisableCommandsTest.java @@ -32,6 +32,7 @@ * *************************************************************************/ +import com.sun.star.configuration.theDefaultProvider; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; import com.sun.star.lang.XMultiComponentFactory; @@ -79,11 +80,7 @@ public class DisableCommandsTest extends java.lang.Object { xTransformer = UnoRuntime.queryInterface(com.sun.star.util.XURLTransformer.class, transformer ); - Object configProvider = xRemoteServiceManager.createInstanceWithContext( - "com.sun.star.configuration.ConfigurationProvider", - xRemoteContext ); - xConfigProvider = UnoRuntime.queryInterface( - com.sun.star.lang.XMultiServiceFactory.class, configProvider ); + xConfigProvider = theDefaultProvider.get(xRemoteContext); // create a new test document Object oDesktop = xRemoteServiceManager.createInstanceWithContext( -- cgit