summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-19 16:00:53 +0200
committerNoel Grandin <noel@peralex.com>2015-01-12 08:36:17 +0200
commit4bf4e3d40778051f1f886c47dd2b2bef82acf1e5 (patch)
treeaba474c9bd3b06154c1c480742a237f83ca7983f /qadevOOo/tests/java/ifc
parent40e48e81af597baca421630693d671130f774f57 (diff)
java: no need to instantiate the AccessibilityTools object
since all of it's methods and fields are static. Change-Id: Ia2b652969489c5a21e01a35cda65c6e84346aac0
Diffstat (limited to 'qadevOOo/tests/java/ifc')
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java1
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java2
-rw-r--r--qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java3
3 files changed, 1 insertions, 5 deletions
diff --git a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
index 484edfdd521c..a9a5b8535e2f 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
@@ -75,7 +75,6 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest {
protected boolean clickOnSheet() {
log.println("try to open contex menu...");
- new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(docModel);
diff --git a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java
index 7a6b8e8d61a9..053e0df20a4a 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XRangeSelection.java
@@ -152,7 +152,7 @@ public class _XRangeSelection extends MultiMethodTest {
*/
protected Point getSheetCenter() {
log.println("Trying to get AccessibleSpreadsheet");
- new AccessibilityTools();
+
XComponent xSheetDoc = (XComponent) tEnv.getObjRelation("DOCUMENT");
XModel xModel = UnoRuntime.queryInterface(XModel.class, xSheetDoc);
diff --git a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
index 8399a9d25f09..06c61013f7a2 100644
--- a/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
+++ b/qadevOOo/tests/java/ifc/ui/_XContextMenuInterception.java
@@ -110,8 +110,6 @@ public class _XContextMenuInterception extends MultiMethodTest {
XAccessible xRoot = null;
- new AccessibilityTools();
-
try {
xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getTopWindow(0));
@@ -156,7 +154,6 @@ public class _XContextMenuInterception extends MultiMethodTest {
private void openContextMenu(XModel xModel){
log.println("try to open contex menu...");
- new AccessibilityTools();
xWindow = AccessibilityTools.getCurrentWindow(xModel);