diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java index b50f6ef1118d..8810e79b33ff 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java @@ -87,7 +87,7 @@ public class AccessibleTabControl extends TestCase { * Creates the Desktop service (<code>com.sun.star.frame.Desktop</code>). */ protected void initialize(TestParameters Param, PrintWriter log) { - the_Desk = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, + the_Desk = UnoRuntime.queryInterface(XDesktop.class, DesktopTools.createDesktop( (XMultiServiceFactory) Param.getMSF())); } @@ -163,12 +163,12 @@ public class AccessibleTabControl extends TestCase { shortWait(); - XModel aModel1 = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel1 = UnoRuntime.queryInterface(XModel.class, xTextDoc); XController secondController = aModel1.getCurrentController(); - XDispatchProvider aProv = (XDispatchProvider) UnoRuntime.queryInterface( + XDispatchProvider aProv = UnoRuntime.queryInterface( XDispatchProvider.class, secondController); @@ -177,7 +177,7 @@ public class AccessibleTabControl extends TestCase { try { XInterface transf = (XInterface) ((XMultiServiceFactory) tParam.getMSF()).createInstance( "com.sun.star.util.URLTransformer"); - urlTransf = (XURLTransformer) UnoRuntime.queryInterface( + urlTransf = UnoRuntime.queryInterface( XURLTransformer.class, transf); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); @@ -209,14 +209,14 @@ public class AccessibleTabControl extends TestCase { throw new StatusException("Couldn't get toolkit", e); } - XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface( + XExtendedToolkit tk = UnoRuntime.queryInterface( XExtendedToolkit.class, oObj); AccessibilityTools at = new AccessibilityTools(); shortWait(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -228,14 +228,14 @@ public class AccessibleTabControl extends TestCase { AccessibleRole.PUSH_BUTTON, "Close"); - accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( + accCloseButton = UnoRuntime.queryInterface( XAccessibleAction.class, closeButton); log.println("ImplementationName: " + util.utils.getImplName(oObj)); TestEnvironment tEnv = new TestEnvironment(oObj); - final XAccessibleSelection selection = (XAccessibleSelection) (XAccessibleSelection) UnoRuntime.queryInterface( + final XAccessibleSelection selection = (XAccessibleSelection) UnoRuntime.queryInterface( XAccessibleSelection.class, oObj); |