summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java')
-rw-r--r--qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
index 04aba5cb8f22..a435a7e784e0 100644
--- a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
+++ b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
@@ -54,10 +54,10 @@ public class _XContextMenuInterception extends MultiMethodTest {
private Point point = null;
public void before() {
- docModel = (XModel) UnoRuntime.queryInterface(
+ docModel = UnoRuntime.queryInterface(
XModel.class,tEnv.getObjRelation("FirstModel"));
- xCI = (XContextMenuInterceptor) UnoRuntime.queryInterface(
+ xCI = UnoRuntime.queryInterface(
XContextMenuInterceptor.class, new ContextMenuInterceptor());
xMSF = (XMultiServiceFactory)tParam.getMSF();
@@ -103,7 +103,7 @@ public class _XContextMenuInterception extends MultiMethodTest {
} catch (com.sun.star.uno.Exception e){
log.println("could not get Toolkit " + e.toString());
}
- XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
+ XExtendedToolkit tk = UnoRuntime.queryInterface(
XExtendedToolkit.class, toolkit);
XAccessible xRoot = null;
@@ -111,7 +111,7 @@ public class _XContextMenuInterception extends MultiMethodTest {
AccessibilityTools at = new AccessibilityTools();
try {
- xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
+ xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getTopWindow(0));
xRoot = at.getAccessibleObject(xWindow);
@@ -162,7 +162,7 @@ public class _XContextMenuInterception extends MultiMethodTest {
XInterface oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.PANEL);
- XAccessibleComponent window = (XAccessibleComponent) UnoRuntime.queryInterface(
+ XAccessibleComponent window = UnoRuntime.queryInterface(
XAccessibleComponent.class, oObj);
point = window.getLocationOnScreen();