Kaydet (Commit) 03511802 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Change implementation names of script providers...

...that are no longer bundled extensions.  Otherwise, old user data where these
were still recorded as bundled extensions could cause execeptions at start up
about duplicate implementations.
üst 2ac2e013
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<component loader="com.sun.star.loader.Java2" <component loader="com.sun.star.loader.Java2"
xmlns="http://openoffice.org/2010/uno-components"> xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell$_ScriptProviderForBeanShell"> <implementation name="com.sun.star.script.framework.provider.beanshell.ScriptProviderForBeanShell$ScriptProviderForBeanShell_2">
<service name="com.sun.star.script.browse.BrowseNode"/> <service name="com.sun.star.script.browse.BrowseNode"/>
<service name="com.sun.star.script.provider.LanguageScriptProvider"/> <service name="com.sun.star.script.provider.LanguageScriptProvider"/>
<service name="com.sun.star.script.provider.ScriptProvider"/> <service name="com.sun.star.script.provider.ScriptProvider"/>
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<component loader="com.sun.star.loader.Java2" <component loader="com.sun.star.loader.Java2"
xmlns="http://openoffice.org/2010/uno-components"> xmlns="http://openoffice.org/2010/uno-components">
<implementation name="com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript$_ScriptProviderForJavaScript"> <implementation name="com.sun.star.script.framework.provider.javascript.ScriptProviderForJavaScript$ScriptProviderForJavaScript_2">
<service name="com.sun.star.script.browse.BrowseNode"/> <service name="com.sun.star.script.browse.BrowseNode"/>
<service name="com.sun.star.script.provider.LanguageScriptProvider"/> <service name="com.sun.star.script.provider.LanguageScriptProvider"/>
<service name="com.sun.star.script.provider.ScriptProvider"/> <service name="com.sun.star.script.provider.ScriptProvider"/>
......
...@@ -58,9 +58,9 @@ import com.sun.star.script.framework.container.ScriptMetaData; ...@@ -58,9 +58,9 @@ import com.sun.star.script.framework.container.ScriptMetaData;
public class ScriptProviderForBeanShell public class ScriptProviderForBeanShell
{ {
public static class _ScriptProviderForBeanShell extends ScriptProvider public static class ScriptProviderForBeanShell_2 extends ScriptProvider
{ {
public _ScriptProviderForBeanShell(XComponentContext ctx) public ScriptProviderForBeanShell_2(XComponentContext ctx)
{ {
super (ctx, "BeanShell"); super (ctx, "BeanShell");
} }
...@@ -112,10 +112,10 @@ public class ScriptProviderForBeanShell ...@@ -112,10 +112,10 @@ public class ScriptProviderForBeanShell
{ {
XSingleServiceFactory xSingleServiceFactory = null; XSingleServiceFactory xSingleServiceFactory = null;
if ( implName.equals( ScriptProviderForBeanShell._ScriptProviderForBeanShell.class.getName() ) ) if ( implName.equals( ScriptProviderForBeanShell.ScriptProviderForBeanShell_2.class.getName() ) )
{ {
xSingleServiceFactory = FactoryHelper.getServiceFactory( xSingleServiceFactory = FactoryHelper.getServiceFactory(
ScriptProviderForBeanShell._ScriptProviderForBeanShell.class, ScriptProviderForBeanShell.ScriptProviderForBeanShell_2.class,
"com.sun.star.script.provider.ScriptProviderForBeanShell", "com.sun.star.script.provider.ScriptProviderForBeanShell",
multiFactory, multiFactory,
regKey ); regKey );
......
...@@ -59,9 +59,9 @@ import org.mozilla.javascript.JavaScriptException; ...@@ -59,9 +59,9 @@ import org.mozilla.javascript.JavaScriptException;
public class ScriptProviderForJavaScript public class ScriptProviderForJavaScript
{ {
public static class _ScriptProviderForJavaScript extends ScriptProvider public static class ScriptProviderForJavaScript_2 extends ScriptProvider
{ {
public _ScriptProviderForJavaScript(XComponentContext ctx) public ScriptProviderForJavaScript_2(XComponentContext ctx)
{ {
super(ctx, "JavaScript"); super(ctx, "JavaScript");
} }
...@@ -113,10 +113,10 @@ public class ScriptProviderForJavaScript ...@@ -113,10 +113,10 @@ public class ScriptProviderForJavaScript
{ {
XSingleServiceFactory xSingleServiceFactory = null; XSingleServiceFactory xSingleServiceFactory = null;
if ( implName.equals( ScriptProviderForJavaScript._ScriptProviderForJavaScript.class.getName() ) ) if ( implName.equals( ScriptProviderForJavaScript.ScriptProviderForJavaScript_2.class.getName() ) )
{ {
xSingleServiceFactory = FactoryHelper.getServiceFactory( xSingleServiceFactory = FactoryHelper.getServiceFactory(
ScriptProviderForJavaScript._ScriptProviderForJavaScript.class, ScriptProviderForJavaScript.ScriptProviderForJavaScript_2.class,
"com.sun.star.script.provider.ScriptProviderForJavaScript", "com.sun.star.script.provider.ScriptProviderForJavaScript",
multiFactory, multiFactory,
regKey ); regKey );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment