From cb8a6709d1526f6ff9d2a3edbbcba12155048373 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 16 Sep 2014 12:29:26 +0200 Subject: Add back __writeRegistryServiceInfo method ...erroneously removed by 34bcf9b498bccb5c924f4cec850ff15d88df6f07 "java: remove dead methods" Change-Id: I4a687bc83dd1c9d26d146fe0423b603f27ee2845 --- odk/examples/java/Inspector/Inspector.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'odk') diff --git a/odk/examples/java/Inspector/Inspector.java b/odk/examples/java/Inspector/Inspector.java index 1139b3071945..a537d9c77941 100644 --- a/odk/examples/java/Inspector/Inspector.java +++ b/odk/examples/java/Inspector/Inspector.java @@ -54,6 +54,7 @@ import com.sun.star.lang.XServiceInfo; import com.sun.star.lang.XSingleComponentFactory; import com.sun.star.lib.uno.helper.Factory; import com.sun.star.lib.uno.helper.WeakBase; +import com.sun.star.registry.XRegistryKey; import com.sun.star.ui.dialogs.XExecutableDialog; import com.sun.star.ui.dialogs.XFolderPicker2; import com.sun.star.uno.UnoRuntime; @@ -440,6 +441,17 @@ public class Inspector{ return xFactory; } - + /** + * Writes the service information into the given registry key. + * This method is called by the JavaLoader + *

+ * @return returns true if the operation succeeded + * @param regKey the registryKey + * @see com.sun.star.comp.loader.JavaLoader + */ + public static boolean __writeRegistryServiceInfo(XRegistryKey regKey) { + return (Factory.writeRegistryServiceInfo(_Inspector.class.getName(), _Inspector.getServiceNames(), regKey) + && InspectorAddon.__writeRegistryServiceInfo(regKey)); + } } -- cgit v1.2.3