summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripting/examples/beanshell/Highlight/highlighter.bsh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/examples/beanshell/Highlight/highlighter.bsh b/scripting/examples/beanshell/Highlight/highlighter.bsh
index a3989b994c..7424718443 100644
--- a/scripting/examples/beanshell/Highlight/highlighter.bsh
+++ b/scripting/examples/beanshell/Highlight/highlighter.bsh
@@ -4,7 +4,7 @@ import com.sun.star.util.XReplaceDescriptor;
import com.sun.star.util.XPropertyReplace;
import com.sun.star.beans.PropertyValue;
import com.sun.star.text.XTextDocument;
-import drafts.com.sun.star.script.provider.XScriptContext;
+import com.sun.star.script.provider.XScriptContext;
int replaceText(searchKey, color, bold) {
@@ -63,10 +63,10 @@ int replaceText(searchKey, color, bold) {
searchKey = "";
-// The context variable is of type XScriptContext and is available to
+// The XSCRIPTCONTEXT variable is of type XScriptContext and is available to
// all BeanShell scripts executed by the Script Framework
xTextDocument = (XTextDocument)
- UnoRuntime.queryInterface(XTextDocument.class, context.getDocument());
+ UnoRuntime.queryInterface(XTextDocument.class, XSCRIPTCONTEXT.getDocument());
// Create a JButton and add an ActionListener
// When clicked the value for the searchKey is read and passed to replaceText