diff options
author | Tomas O'Connor <toconnor@openoffice.org> | 2003-06-03 08:32:50 +0000 |
---|---|---|
committer | Tomas O'Connor <toconnor@openoffice.org> | 2003-06-03 08:32:50 +0000 |
commit | cef995bf5613d88609c66b12fadee499d9fd319e (patch) | |
tree | f3f8d70eb1c86df2db5377474ef6ac48810efc30 /scripting/workben/bindings | |
parent | 6056ad6d1081e097921d4149ecfb963fe2e2f549 (diff) |
Rename ScriptRuntimeForRhino to ScriptRuntimeForJavaScript and replace
all references to language.
Diffstat (limited to 'scripting/workben/bindings')
-rw-r--r-- | scripting/workben/bindings/ScriptBinding.xba | 25 |
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 ( "User", "Share", "Document", "Filesystem" ) - languages = Array ( "BeanShell", "Rhino" ) + languages = Array ( "BeanShell", "JavaScript" ) dialogName = "EditDebug" initialiseFileExtensions() bindingDialog = LoadDialog( "ScriptBindingLibrary", "EditDebug" ) @@ -280,16 +280,17 @@ Sub initialiseNavigationComboArrays() langCount = 1 for index = 0 to ubound(svrArray) - iPos = inStr(svrArray(index), "ScriptRuntimeFor") - iJava = inStr(svrArray(index), "ScriptRuntimeForJava") - - if (iJava = 0) and (iPos > 0) then - lang = Mid(svrArray(index), iPos + Len("ScriptRuntimeFor") - - 'Add to language vector - ReDim Preserve languages(langCount) as String - languages(langCount) = lang - langCount = langCount +1 + iPos = inStr(svrArray(index), "ScriptRuntimeFor") + + if (iPos > 0) then + lang = Mid(svrArray(index), iPos + Len("ScriptRuntimeFor") + + if not (lang = "Java") then + '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> |