diff options
author | Noel Grandin <noel@peralex.com> | 2012-06-27 15:40:17 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-06-29 22:03:01 +0200 |
commit | b65017a2a7af290f6681da7b197a52efe83d5185 (patch) | |
tree | 06f71a435ba200d044109469b13be7c8f5dbe950 /qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java | |
parent | 33ec740d1438c3dddf8e1974757ed05bb76425ca (diff) |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java index 9d0393b9b329..b346eb1076cb 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleRadioButton.java @@ -93,7 +93,7 @@ public class AccessibleRadioButton 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())); } @@ -169,12 +169,12 @@ public class AccessibleRadioButton extends TestCase { util.utils.shortWait(2000); - 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); @@ -183,7 +183,7 @@ public class AccessibleRadioButton 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); @@ -215,14 +215,14 @@ public class AccessibleRadioButton 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(); util.utils.shortWait(2000); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow()); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -231,7 +231,7 @@ public class AccessibleRadioButton extends TestCase { xRoot, AccessibleRole.TREE, "IconChoiceControl"); - XAccessibleSelection sel = (XAccessibleSelection) UnoRuntime.queryInterface( + XAccessibleSelection sel = UnoRuntime.queryInterface( XAccessibleSelection.class, iconChoiceCtrl); @@ -257,7 +257,7 @@ public class AccessibleRadioButton extends TestCase { "Close"); - accCloseButton = (XAccessibleAction) UnoRuntime.queryInterface( + accCloseButton = UnoRuntime.queryInterface( XAccessibleAction.class, closeButton); log.println("ImplementationName: " + util.utils.getImplName(oObj)); @@ -269,7 +269,7 @@ public class AccessibleRadioButton extends TestCase { tEnv.addObjRelation("LimitedBounds", "yes"); - final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( + final XAccessibleComponent acomp = UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); @@ -285,7 +285,7 @@ public class AccessibleRadioButton extends TestCase { tEnv.addObjRelation("EditOnly", "Can't change or select Text in AccessibleRadioButton"); - XAccessibleValue anotherButtonValue = (XAccessibleValue) UnoRuntime.queryInterface( + XAccessibleValue anotherButtonValue = UnoRuntime.queryInterface( XAccessibleValue.class, anotherButton); |