summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-09-16 12:29:26 +0200
committerStephan Bergmann <sbergman@redhat.com>2014-09-16 12:31:03 +0200
commitcb8a6709d1526f6ff9d2a3edbbcba12155048373 (patch)
treec45359f0cee8f761b55e6478aa8fdf0a9ad1518f
parent7d9d7ed9eccb1b887e6e0f84a33ffac0438aecd9 (diff)
Add back __writeRegistryServiceInfo method
...erroneously removed by 34bcf9b498bccb5c924f4cec850ff15d88df6f07 "java: remove dead methods" Change-Id: I4a687bc83dd1c9d26d146fe0423b603f27ee2845
-rw-r--r--odk/examples/java/Inspector/Inspector.java14
1 files changed, 13 insertions, 1 deletions
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 <code>JavaLoader</code>
+ * <p>
+ * @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));
+ }
}