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/AccessibleButton.java | |
parent | 33ec740d1438c3dddf8e1974757ed05bb76425ca (diff) |
Java5 update - usage generics where possible
Change-Id: I12f8c448961919e153047e28fee2a0acf3af1002
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java index 940a06a012c8..b8870c431417 100644 --- a/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java +++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleButton.java @@ -96,7 +96,7 @@ public class AccessibleButton extends lib.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")); @@ -112,7 +112,7 @@ public class AccessibleButton extends lib.TestCase { Object atw = tk.getActiveTopWindow(); - XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, atw); XAccessible xRoot = at.getAccessibleObject(xWindow); @@ -126,10 +126,10 @@ public class AccessibleButton extends lib.TestCase { TestEnvironment tEnv = new TestEnvironment(oObj); - action = (XAccessibleAction) UnoRuntime.queryInterface( + action = UnoRuntime.queryInterface( XAccessibleAction.class, oObj); - final XAccessibleComponent acomp = (XAccessibleComponent) UnoRuntime.queryInterface( + final XAccessibleComponent acomp = UnoRuntime.queryInterface( XAccessibleComponent.class, oObj); @@ -141,7 +141,7 @@ public class AccessibleButton extends lib.TestCase { } }); - XAccessibleText text = (XAccessibleText) UnoRuntime.queryInterface( + XAccessibleText text = UnoRuntime.queryInterface( XAccessibleText.class, oObj); tEnv.addObjRelation("XAccessibleText.Text", text.getText()); @@ -200,7 +200,7 @@ public class AccessibleButton extends lib.TestCase { } public void run() { - XModel aModel = (XModel) UnoRuntime.queryInterface(XModel.class, + XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); XController xController = aModel.getCurrentController(); @@ -208,10 +208,10 @@ public class AccessibleButton extends lib.TestCase { //Opening PrinterSetupDialog try { String aSlotID = ".uno:Zoom"; - 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")); |