diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java index c127b6531d62..a0a860d6f4aa 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleCheckBox.java @@ -116,7 +116,7 @@ public class AccessibleCheckBox extends TestCase { throw new StatusException("Couldn't get toolkit", e); } - XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( + XExtendedToolkit tk = UnoRuntime.queryInterface( XExtendedToolkit.class, oObj); util.utils.shortWait(Param.getInt("ShortWait")); @@ -134,7 +134,7 @@ public class AccessibleCheckBox extends TestCase { log.println("Getting the active TopWindow"); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -144,7 +144,7 @@ public class AccessibleCheckBox extends TestCase { oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PUSH_BUTTON, "Cancel"); - action = (XAccessibleAction) UnoRuntime.queryInterface( + action = UnoRuntime.queryInterface( XAccessibleAction.class, oObj); oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.CHECK_BOX); @@ -153,7 +153,7 @@ public class AccessibleCheckBox extends TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( + final XAccessibleComponent acomp = UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); @@ -165,7 +165,7 @@ public class AccessibleCheckBox extends TestCase { } }); - XAccessibleText text = (XAccessibleText) UnoRuntime.queryInterface( + XAccessibleText text = UnoRuntime.queryInterface( XAccessibleText.class, oObj); tEnv.addObjRelation("XAccessibleText.Text", text.getText()); @@ -216,7 +216,7 @@ public class AccessibleCheckBox extends TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xController = aModel.getCurrentController(); @@ -224,10 +224,10 @@ public class AccessibleCheckBox extends TestCase { //Opening PrinterSetupDialog try { String aSlotID = ".uno:InsertTable"; - XDispatchProvider xDispProv = (XDispatchProvider) UnoRuntime.queryInterface( + XDispatchProvider xDispProv = UnoRuntime.queryInterface( XDispatchProvider.class, xController); - XURLTransformer xParser = (com.sun.star.util.XURLTransformer) UnoRuntime.queryInterface( + XURLTransformer xParser = UnoRuntime.queryInterface( XURLTransformer.class, msf.createInstance( "com.sun.star.util.URLTransformer")); |