summaryrefslogtreecommitdiff
path: root/scripting/workben/bindings
diff options
context:
space:
mode:
authorTomas O'Connor <toconnor@openoffice.org>2003-06-03 08:32:50 +0000
committerTomas O'Connor <toconnor@openoffice.org>2003-06-03 08:32:50 +0000
commitcef995bf5613d88609c66b12fadee499d9fd319e (patch)
treef3f8d70eb1c86df2db5377474ef6ac48810efc30 /scripting/workben/bindings
parent6056ad6d1081e097921d4149ecfb963fe2e2f549 (diff)
Rename ScriptRuntimeForRhino to ScriptRuntimeForJavaScript and replace
all references to language.
Diffstat (limited to 'scripting/workben/bindings')
-rw-r--r--scripting/workben/bindings/ScriptBinding.xba25
1 files changed, 13 insertions, 12 deletions
diff --git a/scripting/workben/bindings/ScriptBinding.xba b/scripting/workben/bindings/ScriptBinding.xba
index 34f47230496a..e25ab0718968 100644
--- a/scripting/workben/bindings/ScriptBinding.xba
+++ b/scripting/workben/bindings/ScriptBinding.xba
@@ -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>