diff options
author | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-10-11 12:30:39 +0000 |
---|---|---|
committer | Jens-Heiner Rechtien <hr@openoffice.org> | 2004-10-11 12:30:39 +0000 |
commit | a300c1f0ff1b1858f3920da4a5bb8d4b1affaa83 (patch) | |
tree | 8c339d478d100c5fb30014233b7be1481e751cb6 /scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java | |
parent | INTEGRATION: CWS sch04 (1.2.136); FILE MERGED (diff) | |
download | core-a300c1f0ff1b1858f3920da4a5bb8d4b1affaa83.tar.gz core-a300c1f0ff1b1858f3920da4a5bb8d4b1affaa83.zip |
INTEGRATION: CWS macrouifix (1.5.10); FILE MERGED
2004/09/16 09:23:06 dfoster 1.5.10.2: #i33576#
2004/09/13 13:25:58 dfoster 1.5.10.1: #i33576#
Added extra services to registration code.
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java')
-rwxr-xr-x | scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java index 0af13e309201..bace4dc712c8 100755 --- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java +++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java @@ -2,9 +2,9 @@ * * $RCSfile: ScriptProviderForBeanShell.java,v $ * -* $Revision: 1.5 $ +* $Revision: 1.6 $ * -* last change: $Author: hr $ $Date: 2004-07-23 14:03:24 $ +* last change: $Author: hr $ $Date: 2004-10-11 13:30:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -191,26 +191,21 @@ public class ScriptProviderForBeanShell */ public static boolean __writeRegistryServiceInfo( XRegistryKey regKey ) { - String impl = "com.sun.star.scripting.runtime.beanshell." + + String impl = "com.sun.star.script.framework.provider.beanshell." + "ScriptProviderForBeanShell$_ScriptProviderForBeanShell"; - String service = "drafts.com.sun.star.script.provider." + + String service1 = "drafts.com.sun.star.script.provider." + + "ScriptProvider"; + String service2 = "drafts.com.sun.star.script.provider." + + "LanguageScriptProvider"; + String service3 = "drafts.com.sun.star.script.provider." + "ScriptProviderForBeanShell"; - if (FactoryHelper.writeRegistryServiceInfo(impl, service, regKey)) { - try { - // code below is commented out because we want this to happen - // as part of the install, this will have to be done - // programatically during the install as registration of java components - // is not fully supported in setup. It should work somewhat like c++ somewhat like c++ registration in install -/* XRegistryKey newKey = regKey.createKey(impl + "/UNO/SINGLETONS/drafts.com.sun.star.script.provider.theScriptProviderForBeanShell"); - newKey.setStringValue(service); */ + if ( FactoryHelper.writeRegistryServiceInfo(impl, service1, regKey) && + FactoryHelper.writeRegistryServiceInfo(impl, service2, regKey) && + FactoryHelper.writeRegistryServiceInfo(impl, service3, regKey) ) + { return true; - } - catch (Exception ex) { - System.err.println( - "Error registering ScriptProviderForBeanShell: " + ex); - } } return false; } |