Kaydet (Commit) cef995bf authored tarafından Tomas O'Connor's avatar Tomas O'Connor

Rename ScriptRuntimeForRhino to ScriptRuntimeForJavaScript and replace

all references to language.
üst 6056ad6d
...@@ -20,7 +20,7 @@ public class DebugRunner { ...@@ -20,7 +20,7 @@ public class DebugRunner {
OOScriptDebugger debugger; OOScriptDebugger debugger;
String path = ""; String path = "";
if (language.equals("Rhino")) { if (language.equals("JavaScript")) {
debugger = new OORhinoDebugger(); debugger = new OORhinoDebugger();
} }
else if (language.equals("BeanShell")) { else if (language.equals("BeanShell")) {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<script language="Java"> <script language="Java">
<locale lang="en"> <locale lang="en">
<displayname value="Scripting Framework Debugger" /> <displayname value="Scripting Framework Debugger" />
<description>Script that starts debuggers for Rhino and BeanShell <description>Script that starts debuggers for JavaScript and BeanShell
</description> </description>
</locale> </locale>
<logicalname value="_$DebugRunner.Debug" /> <logicalname value="_$DebugRunner.Debug" />
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
# #
# $RCSfile: build.xml,v $ # $RCSfile: build.xml,v $
# #
# $Revision: 1.19 $ # $Revision: 1.20 $
# #
# last change: $Author: toconnor $ $Date: 2003-05-16 13:50:00 $ # last change: $Author: toconnor $ $Date: 2003-06-03 09:32:48 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
...@@ -169,10 +169,10 @@ ...@@ -169,10 +169,10 @@
basedir="${scriptingclasses}"> basedir="${scriptingclasses}">
<exclude name="${netbeans.dir}/**/.*/*"/> <exclude name="${netbeans.dir}/**/.*/*"/>
<exclude name="**/beanshell/*"/> <exclude name="**/beanshell/*"/>
<exclude name="**/rhino/*"/> <exclude name="**/javascript/*"/>
<exclude name="**/security/*"/> <exclude name="**/security/*"/>
<exclude name="BeanShellRuntimeComponentRegistration.class"/> <exclude name="BeanShellRuntimeComponentRegistration.class"/>
<exclude name="RhinoRuntimeComponentRegistration.class"/> <exclude name="JavaScriptRuntimeComponentRegistration.class"/>
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName" value="ScriptRuntimeComponentRegistration"/> <attribute name="RegistrationClassName" value="ScriptRuntimeComponentRegistration"/>
...@@ -191,15 +191,15 @@ ...@@ -191,15 +191,15 @@
<include name="**/ScriptContext.class"/> <include name="**/ScriptContext.class"/>
</jar> </jar>
<jar jarfile="${jardir}/ScriptRuntimeForRhino.jar" <jar jarfile="${jardir}/ScriptRuntimeForJavaScript.jar"
basedir="${scriptingclasses}"> basedir="${scriptingclasses}">
<manifest> <manifest>
<attribute name="Built-By" value="Sun Microsystems"/> <attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName" <attribute name="RegistrationClassName"
value="RhinoRuntimeComponentRegistration"/> value="JavaScriptRuntimeComponentRegistration"/>
</manifest> </manifest>
<include name="RhinoRuntimeComponentRegistration.class"/> <include name="JavaScriptRuntimeComponentRegistration.class"/>
<include name="**/ScriptRuntimeForRhino**.class"/> <include name="**/ScriptRuntimeForJavaScript**.class"/>
<include name="**/ScriptContext.class"/> <include name="**/ScriptContext.class"/>
</jar> </jar>
......
...@@ -234,7 +234,7 @@ end sub ...@@ -234,7 +234,7 @@ end sub
Sub ExecuteEditDebug() Sub ExecuteEditDebug()
locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; ) locations = Array ( &quot;User&quot;, &quot;Share&quot;, &quot;Document&quot;, &quot;Filesystem&quot; )
languages = Array ( &quot;BeanShell&quot;, &quot;Rhino&quot; ) languages = Array ( &quot;BeanShell&quot;, &quot;JavaScript&quot; )
dialogName = &quot;EditDebug&quot; dialogName = &quot;EditDebug&quot;
initialiseFileExtensions() initialiseFileExtensions()
bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; ) bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; )
...@@ -281,15 +281,16 @@ Sub initialiseNavigationComboArrays() ...@@ -281,15 +281,16 @@ Sub initialiseNavigationComboArrays()
langCount = 1 langCount = 1
for index = 0 to ubound(svrArray) for index = 0 to ubound(svrArray)
iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;) iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;)
iJava = inStr(svrArray(index), &quot;ScriptRuntimeForJava&quot;)
if (iJava = 0) and (iPos &gt; 0) then if (iPos &gt; 0) then
lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;) lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;)
if not (lang = &quot;Java&quot;) then
&apos;Add to language vector &apos;Add to language vector
ReDim Preserve languages(langCount) as String ReDim Preserve languages(langCount) as String
languages(langCount) = lang languages(langCount) = lang
langCount = langCount +1 langCount = langCount + 1
endif
endif endif
next index next index
initialiseFileExtensions() initialiseFileExtensions()
......
...@@ -3,9 +3,9 @@ ...@@ -3,9 +3,9 @@
# #
# $RCSfile: build.xml,v $ # $RCSfile: build.xml,v $
# #
# $Revision: 1.25 $ # $Revision: 1.26 $
# #
# last change: $Author: dfoster $ $Date: 2003-05-29 14:18:39 $ # last change: $Author: toconnor $ $Date: 2003-06-03 09:32:49 $
# #
# The Contents of this file are made available subject to the terms of # The Contents of this file are made available subject to the terms of
# either of the following licenses # either of the following licenses
...@@ -335,9 +335,9 @@ ...@@ -335,9 +335,9 @@
<mkdir dir="${out}/class/jsruntime/skip_registration"/> <mkdir dir="${out}/class/jsruntime/skip_registration"/>
<mkdir dir="${out}/class/jsruntimetmp"/> <mkdir dir="${out}/class/jsruntimetmp"/>
<copy file="${out}/class/ScriptRuntimeForRhino.jar" <copy file="${out}/class/ScriptRuntimeForJavaScript.jar"
todir="${out}/class/jsruntime/"/> todir="${out}/class/jsruntime/"/>
<copy file="installer/Scripting.Rhino.xcu" <copy file="installer/Scripting.JavaScript.xcu"
tofile="${out}/class/jsruntime/Scripting.xcu"/> tofile="${out}/class/jsruntime/Scripting.xcu"/>
<unzip src="${install.dir}/js.jar" <unzip src="${install.dir}/js.jar"
......
<?xml version="1.0" encoding="UTF-8"?>
<oor:node xmlns:oor="http://openoffice.org/2001/registry" xmlns:xs="http://www.w3.org/2001/XMLSchema" oor:name="Scripting" oor:package="org.openoffice.Office">
<node oor:name="ScriptRuntimes">
<node oor:name="JavaScript" oor:op="replace">
<prop oor:name="SupportedFileExtensions">
<value xml:lang="en-US">js</value>
</prop>
</node>
</node>
</oor:node>
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