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 {
OOScriptDebugger debugger;
String path = "";
if (language.equals("Rhino")) {
if (language.equals("JavaScript")) {
debugger = new OORhinoDebugger();
}
else if (language.equals("BeanShell")) {
......
......@@ -5,7 +5,7 @@
<script language="Java">
<locale lang="en">
<displayname value="Scripting Framework Debugger" />
<description>Script that starts debuggers for Rhino and BeanShell
<description>Script that starts debuggers for JavaScript and BeanShell
</description>
</locale>
<logicalname value="_$DebugRunner.Debug" />
......
......@@ -3,9 +3,9 @@
#
# $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
# either of the following licenses
......@@ -169,10 +169,10 @@
basedir="${scriptingclasses}">
<exclude name="${netbeans.dir}/**/.*/*"/>
<exclude name="**/beanshell/*"/>
<exclude name="**/rhino/*"/>
<exclude name="**/javascript/*"/>
<exclude name="**/security/*"/>
<exclude name="BeanShellRuntimeComponentRegistration.class"/>
<exclude name="RhinoRuntimeComponentRegistration.class"/>
<exclude name="JavaScriptRuntimeComponentRegistration.class"/>
<manifest>
<attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName" value="ScriptRuntimeComponentRegistration"/>
......@@ -191,15 +191,15 @@
<include name="**/ScriptContext.class"/>
</jar>
<jar jarfile="${jardir}/ScriptRuntimeForRhino.jar"
<jar jarfile="${jardir}/ScriptRuntimeForJavaScript.jar"
basedir="${scriptingclasses}">
<manifest>
<attribute name="Built-By" value="Sun Microsystems"/>
<attribute name="RegistrationClassName"
value="RhinoRuntimeComponentRegistration"/>
value="JavaScriptRuntimeComponentRegistration"/>
</manifest>
<include name="RhinoRuntimeComponentRegistration.class"/>
<include name="**/ScriptRuntimeForRhino**.class"/>
<include name="JavaScriptRuntimeComponentRegistration.class"/>
<include name="**/ScriptRuntimeForJavaScript**.class"/>
<include name="**/ScriptContext.class"/>
</jar>
......
......@@ -234,7 +234,7 @@ end sub
Sub ExecuteEditDebug()
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;
initialiseFileExtensions()
bindingDialog = LoadDialog( &quot;ScriptBindingLibrary&quot;, &quot;EditDebug&quot; )
......@@ -280,16 +280,17 @@ Sub initialiseNavigationComboArrays()
langCount = 1
for index = 0 to ubound(svrArray)
iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;)
iJava = inStr(svrArray(index), &quot;ScriptRuntimeForJava&quot;)
if (iJava = 0) and (iPos &gt; 0) then
lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;)
&apos;Add to language vector
ReDim Preserve languages(langCount) as String
languages(langCount) = lang
langCount = langCount +1
iPos = inStr(svrArray(index), &quot;ScriptRuntimeFor&quot;)
if (iPos &gt; 0) then
lang = Mid(svrArray(index), iPos + Len(&quot;ScriptRuntimeFor&quot;)
if not (lang = &quot;Java&quot;) then
&apos;Add to language vector
ReDim Preserve languages(langCount) as String
languages(langCount) = lang
langCount = langCount + 1
endif
endif
next index
initialiseFileExtensions()
......@@ -2036,4 +2037,4 @@ end sub
sub HelpOKButton()
helpDialog.endExecute()
end sub
</script:module>
\ No newline at end of file
</script:module>
This diff is collapsed.
<?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