summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-09-03 10:44:20 +0200
committerMichael Stahl <mstahl@redhat.com>2012-09-05 21:01:47 +0200
commitbb257014cdc0374db1a8d9932ba8629ce9aac8f4 (patch)
tree3ed94dbbb246a53caa0fe487f030cc4806868696 /scripting
parentbc6a9e9b47d90f550452c5c4a9cd093b1b60bbe6 (diff)
Java cleanup, fix compile errors
Change-Id: Ia16a54432291935125d53de9d7cc010917b8373d
Diffstat (limited to 'scripting')
-rw-r--r--scripting/workben/mod/_scripting/Function.java2
-rw-r--r--scripting/workben/mod/_scripting/FunctionProvider.java2
-rw-r--r--scripting/workben/mod/_scripting/ScriptInfo.java2
-rw-r--r--scripting/workben/mod/_scripting/ScriptRuntimeManager.java3
-rw-r--r--scripting/workben/mod/_scripting/ScriptStorage.java2
-rw-r--r--scripting/workben/mod/_scripting/ScriptStorageManager.java2
6 files changed, 7 insertions, 6 deletions
diff --git a/scripting/workben/mod/_scripting/Function.java b/scripting/workben/mod/_scripting/Function.java
index 7aa40a649ccd..21eab2a7f94d 100644
--- a/scripting/workben/mod/_scripting/Function.java
+++ b/scripting/workben/mod/_scripting/Function.java
@@ -54,7 +54,7 @@ public class Function extends TestCase {
log.println("creating test environment");
try {
- XMultiServiceFactory xMSF = tParam.getMSF();
+ XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
SOfficeFactory SOF = null;
SOF = SOfficeFactory.getFactory( xMSF );
String docPath = util.utils.getFullTestURL(doc);
diff --git a/scripting/workben/mod/_scripting/FunctionProvider.java b/scripting/workben/mod/_scripting/FunctionProvider.java
index 278e10d9cb9e..653a6de84b86 100644
--- a/scripting/workben/mod/_scripting/FunctionProvider.java
+++ b/scripting/workben/mod/_scripting/FunctionProvider.java
@@ -44,7 +44,7 @@ public class FunctionProvider extends TestCase {
log.println("creating test environment");
try {
- XMultiServiceFactory xMSF = tParam.getMSF();
+ XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
Object xInterface = xMSF.createInstance( "com.sun.star.frame.Desktop" );
XDesktop dtop = ( XDesktop )UnoRuntime.queryInterface( XDesktop.class,
diff --git a/scripting/workben/mod/_scripting/ScriptInfo.java b/scripting/workben/mod/_scripting/ScriptInfo.java
index a0f23333cde6..aff4a55db58b 100644
--- a/scripting/workben/mod/_scripting/ScriptInfo.java
+++ b/scripting/workben/mod/_scripting/ScriptInfo.java
@@ -70,7 +70,7 @@ public class ScriptInfo extends TestCase {
XInterface oObj = null;
XSimpleFileAccess access = null;
try {
- XMultiServiceFactory xMSF = tParam.getMSF();
+ XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
Object xInterface =
xMSF.createInstance( "com.sun.star.ucb.SimpleFileAccess" );
access = ( XSimpleFileAccess )
diff --git a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java b/scripting/workben/mod/_scripting/ScriptRuntimeManager.java
index 66fb906e2c52..48946738b614 100644
--- a/scripting/workben/mod/_scripting/ScriptRuntimeManager.java
+++ b/scripting/workben/mod/_scripting/ScriptRuntimeManager.java
@@ -19,6 +19,7 @@
package mod._scripting;
import com.sun.star.uno.XInterface;
+import com.sun.star.lang.XMultiServiceFactory;
import java.io.PrintWriter;
import lib.StatusException;
import lib.TestCase;
@@ -38,7 +39,7 @@ public class ScriptRuntimeManager extends TestCase {
XInterface oObj = null;
try {
- oObj = (XInterface) Param.getMSF().createInstance
+ oObj = (XInterface) ((XMultiServiceFactory)Param.getMSF()).createInstance
("drafts.com.sun.star.script.framework.runtime.ScriptRuntimeManager");
} catch (com.sun.star.uno.Exception e) {
throw new StatusException("Can't create object environment", e) ;
diff --git a/scripting/workben/mod/_scripting/ScriptStorage.java b/scripting/workben/mod/_scripting/ScriptStorage.java
index 72decfb889a8..e1c9f01a8056 100644
--- a/scripting/workben/mod/_scripting/ScriptStorage.java
+++ b/scripting/workben/mod/_scripting/ScriptStorage.java
@@ -67,7 +67,7 @@ public class ScriptStorage extends TestCase {
XInterface oObj = null;
XSimpleFileAccess access = null;
try {
- XMultiServiceFactory xMSF = tParam.getMSF();
+ XMultiServiceFactory xMSF = (XMultiServiceFactory) tParam.getMSF();
Object xInterface =
xMSF.createInstance( "com.sun.star.ucb.SimpleFileAccess" );
access = ( XSimpleFileAccess )
diff --git a/scripting/workben/mod/_scripting/ScriptStorageManager.java b/scripting/workben/mod/_scripting/ScriptStorageManager.java
index cc726b95c706..2f8798c8b81e 100644
--- a/scripting/workben/mod/_scripting/ScriptStorageManager.java
+++ b/scripting/workben/mod/_scripting/ScriptStorageManager.java
@@ -42,7 +42,7 @@ public class ScriptStorageManager extends TestCase {
Object oInterface = null;
try {
- XMultiServiceFactory xMSF = Param.getMSF();
+ XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF();
XPropertySet xProp = (XPropertySet)UnoRuntime.queryInterface(
XPropertySet.class, xMSF);
// get context