diff options
Diffstat (limited to 'scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java')
-rw-r--r-- | scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java index 9b16d54524cb..ce519abc605e 100644 --- a/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java +++ b/scripting/java/com/sun/star/script/framework/provider/EditorScriptContext.java @@ -52,7 +52,7 @@ public class EditorScriptContext implements XScriptContext */ public XModel getDocument() { - XModel xModel = ( XModel ) UnoRuntime.queryInterface( XModel.class, + XModel xModel = UnoRuntime.queryInterface( XModel.class, m_xDeskTop.getCurrentComponent() ); return xModel; @@ -60,7 +60,7 @@ public class EditorScriptContext implements XScriptContext public XScriptInvocationContext getInvocationContext() { - XScriptInvocationContext xContext = ( XScriptInvocationContext ) UnoRuntime.queryInterface( + XScriptInvocationContext xContext = UnoRuntime.queryInterface( XScriptInvocationContext.class, getDocument() ); return xContext; } |