summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-05-28 09:03:37 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-05-28 09:03:37 +0000
commit64d521130076ace9370b9668dbd8e4ba2be7b00e (patch)
tree78fd34ad338a663acd71c0b37f057b4ec4877646 /qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
parent317a6230134a1bafb59473530d3cd739e738451b (diff)
#100000# SW: added cast for MSF
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
index 5ffe8ac60894..a45d02966a14 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java
@@ -2,9 +2,9 @@
*
* $RCSfile: AccessibleButton.java,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Date: 2003-05-22 13:30:57 $
+ * last change: $Date: 2003-05-28 10:03:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -128,13 +128,12 @@ public class AccessibleButton extends lib.TestCase {
TestParameters Param, PrintWriter log) {
XInterface oObj = null;
-
+ XMultiServiceFactory msf = (XMultiServiceFactory) Param.getMSF();
// get a soffice factory object
- SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( msf);
try {
- oObj = (XInterface) Param.getMSF().createInstance
- ("com.sun.star.awt.Toolkit") ;
+ oObj = (XInterface) msf.createInstance("com.sun.star.awt.Toolkit") ;
} catch (com.sun.star.uno.Exception e) {
log.println("Couldn't get toolkit");
e.printStackTrace(log);
@@ -146,7 +145,7 @@ public class AccessibleButton extends lib.TestCase {
shortWait();
- DiagThread psDiag = new DiagThread(xTextDoc,Param.getMSF());
+ DiagThread psDiag = new DiagThread(xTextDoc,msf);
psDiag.start();
try{
psDiag.join();
@@ -223,7 +222,7 @@ public class AccessibleButton extends lib.TestCase {
*/
protected void initialize(TestParameters Param, PrintWriter log) {
try {
- SOfficeFactory SOF = SOfficeFactory.getFactory( Param.getMSF());
+ SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)Param.getMSF());
xTextDoc = SOF.createTextDoc(null);
} catch (com.sun.star.uno.Exception e) {
throw new StatusException("Can't create document", e);