java: no need to instantiate the AccessibilityTools object
since all of it's methods and fields are static. Change-Id: Ia2b652969489c5a21e01a35cda65c6e84346aac0
This commit is contained in:
parent
40e48e81af
commit
4bf4e3d407
@ -224,8 +224,6 @@ public class CheckContextMenuInterceptor
|
||||
|
||||
XAccessible xRoot = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
try
|
||||
{
|
||||
xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getTopWindow(0));
|
||||
@ -288,7 +286,6 @@ public class CheckContextMenuInterceptor
|
||||
{
|
||||
|
||||
System.out.println("try to open contex menu...");
|
||||
new AccessibilityTools();
|
||||
|
||||
xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
|
||||
|
@ -34,6 +34,8 @@ public class AccessibilityTools {
|
||||
public static XAccessible SearchedAccessible = null;
|
||||
private static boolean debug = false;
|
||||
|
||||
private AccessibilityTools() {}
|
||||
|
||||
public static XAccessible getAccessibleObject(XInterface xObject) {
|
||||
return UnoRuntime.queryInterface(XAccessible.class, xObject);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
|
@ -106,8 +106,6 @@ public class AccessibleShape extends TestCase {
|
||||
throw new StatusException("Couldn't get toolkit", e );
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
final XWindow basicIDE = xFrame.getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(basicIDE);
|
||||
|
@ -85,8 +85,6 @@ public class ScAccessibleDocument extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -153,8 +153,6 @@ public class ScAccessibleDocumentPagePreview extends TestCase {
|
||||
Thread.sleep(500);
|
||||
} catch (InterruptedException ex) {}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
|
||||
|
@ -135,8 +135,6 @@ public class ScAccessiblePageHeaderArea extends TestCase {
|
||||
Thread.sleep(500);
|
||||
} catch (InterruptedException ex) {}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -109,8 +109,6 @@ public class ScAccessibleSpreadsheet extends TestCase {
|
||||
|
||||
XModel xModel = UnoRuntime.queryInterface(XModel.class, xSheetDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(xModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccArea extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccAxis extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccDataPoint extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccDataSeries extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccDiagram extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -84,8 +84,6 @@ public class AccFloor extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccGrid extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccLegend extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccLegendEntry extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -65,8 +65,6 @@ public class AccStatisticsObject extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -61,8 +61,6 @@ public class AccTitle extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -84,8 +84,6 @@ public class AccWall extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -49,8 +49,6 @@ public class AccessibleDocumentView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xChartDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -98,8 +98,6 @@ public class AccessibleDrawDocumentView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xDrawDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (
|
||||
aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -64,8 +64,6 @@ public class AccessibleOutlineView extends TestCase {
|
||||
(TestParameters Param, PrintWriter log) {
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (
|
||||
aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -64,12 +64,10 @@ public class AccessibleSlideView extends TestCase {
|
||||
(TestParameters Param, PrintWriter log) {
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XDrawPagesSupplier oDPS = UnoRuntime.queryInterface(XDrawPagesSupplier.class, aModel);
|
||||
XDrawPages oDPn = oDPS.getDrawPages();
|
||||
|
||||
oDPn.insertNewByIndex(0);
|
||||
oDPn.insertNewByIndex(0);
|
||||
|
||||
shortWait();
|
||||
|
||||
|
@ -108,8 +108,6 @@ public class SmEditAccessible extends TestCase {
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xMathDoc);
|
||||
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -110,8 +110,6 @@ public class SmGraphicAccessible extends TestCase {
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xMathDoc);
|
||||
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -150,8 +150,6 @@ public class AccessibleBrowseBox extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -196,8 +196,6 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -192,8 +192,6 @@ public class AccessibleBrowseBoxHeaderCell extends TestCase {
|
||||
throw new StatusException("Could not select Biblio-Database", ex);
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -189,8 +189,6 @@ public class AccessibleBrowseBoxTable extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -180,8 +180,6 @@ public class AccessibleBrowseBoxTableCell extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -203,8 +203,6 @@ public class AccessibleIconChoiceCtrl extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(
|
||||
XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -201,8 +201,6 @@ public class AccessibleIconChoiceCtrlEntry extends TestCase {
|
||||
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow());
|
||||
|
@ -101,8 +101,6 @@ public class AccessibleTabBar extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xDoc).
|
||||
|
@ -135,8 +135,6 @@ public class AccessibleTabBarPage extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class, oObj);
|
||||
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,tk.getActiveTopWindow());
|
||||
|
@ -136,8 +136,6 @@ public class AccessibleTabBarPageList extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(
|
||||
XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -170,8 +170,6 @@ public class AccessibleTreeListBox extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -225,8 +225,6 @@ public class AccessibleTreeListBoxEntry extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = secondController.getFrame().getContainerWindow();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -81,7 +81,6 @@ public class AccessibleControlShape extends TestCase {
|
||||
final XShape oShape = FormTools.insertControlShape
|
||||
(xDrawDoc,3000,4500,15000,1000,"CommandButton");
|
||||
|
||||
new AccessibilityTools();
|
||||
utils.shortWait(5000);
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -63,8 +63,6 @@ public class AccessibleEditableTextPara extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xSpreadsheetDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -87,8 +87,6 @@ public class AccessibleGraphicShape extends TestCase {
|
||||
|
||||
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -108,8 +108,6 @@ public class AccessibleOLEShape extends TestCase {
|
||||
throw new StatusException("Couldn't change property", e);
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -82,8 +82,6 @@ public class AccessiblePageShape extends TestCase {
|
||||
// first we write what we are intend to do to log file
|
||||
log.println( "creating a test environment" );
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -105,8 +105,6 @@ public class AccessiblePresentationGraphicShape extends TestCase {
|
||||
} catch (com.sun.star.beans.UnknownPropertyException e) {
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -113,8 +113,6 @@ public class AccessiblePresentationOLEShape extends TestCase {
|
||||
} catch (com.sun.star.beans.UnknownPropertyException e) {
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
AccessibilityTools.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
|
||||
|
@ -102,8 +102,6 @@ public class AccessiblePresentationShape extends TestCase {
|
||||
"IsEmptyPresentationObject", Boolean.FALSE);
|
||||
} catch (Exception e) {}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -86,8 +86,6 @@ public class AccessibleShape extends TestCase {
|
||||
|
||||
DrawTools.getShapes(DrawTools.getDrawPage(xDrawDoc,0)).add(oShape);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow (aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -131,8 +131,6 @@ public class SvxGraphCtrlAccessibleContext extends TestCase{
|
||||
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class,oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,tk.getActiveTopWindow());
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
@ -115,8 +115,6 @@ public class SwAccessibleDocumentPageView extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -97,8 +97,6 @@ public class SwAccessibleDocumentView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -114,8 +114,6 @@ public class SwAccessibleEndnoteView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -127,8 +127,6 @@ public class SwAccessibleFooterView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -115,8 +115,6 @@ public class SwAccessibleFootnoteView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -117,8 +117,6 @@ public class SwAccessibleHeaderView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -170,8 +170,6 @@ public class SwAccessiblePageView extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -69,8 +69,6 @@ public class SwAccessibleParagraphView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -83,8 +83,6 @@ public class SwAccessibleTableCellView extends TestCase {
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class,
|
||||
xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -84,8 +84,6 @@ public class SwAccessibleTableView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -68,8 +68,6 @@ public class SwAccessibleTextEmbeddedObject extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -101,8 +101,6 @@ public class SwAccessibleTextFrameView extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -90,8 +90,6 @@ public class SwAccessibleTextGraphicObject extends TestCase {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -107,8 +107,6 @@ public class AccessibleButton extends lib.TestCase {
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
Object atw = tk.getActiveTopWindow();
|
||||
|
@ -129,8 +129,6 @@ public class AccessibleCheckBox extends TestCase {
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
log.println("Getting the active TopWindow");
|
||||
|
@ -100,10 +100,6 @@ public class AccessibleComboBox extends TestCase {
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
util.utils.shortWait(Param.getInt("ShortWait"));
|
||||
|
||||
Object atw = tk.getActiveTopWindow();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -74,8 +74,6 @@ public class AccessibleDropDownComboBox extends TestCase {
|
||||
PrintWriter log) {
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
|
||||
xTextDoc);
|
||||
|
||||
|
@ -75,8 +75,6 @@ public class AccessibleDropDownListBox extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(
|
||||
xTextDoc);
|
||||
|
||||
|
@ -137,8 +137,6 @@ public class AccessibleEdit extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
tk.getActiveTopWindow());
|
||||
|
||||
|
@ -139,8 +139,6 @@ public class AccessibleFixedText extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWinDlg);
|
||||
|
||||
AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
|
||||
|
@ -115,8 +115,6 @@ public class AccessibleList extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
tk.getActiveTopWindow());
|
||||
|
||||
|
@ -138,8 +138,6 @@ public class AccessibleListBox extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
tk.getActiveTopWindow());
|
||||
|
||||
|
@ -136,8 +136,6 @@ public class AccessibleListItem extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
tk.getActiveTopWindow());
|
||||
|
||||
|
@ -97,8 +97,6 @@ public class AccessibleMenu extends TestCase {
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
|
||||
getCurrentController().getFrame().getContainerWindow();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
AccessibilityTools.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
|
||||
|
@ -73,8 +73,6 @@ public class AccessibleMenuBar extends TestCase {
|
||||
PrintWriter log) {
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
|
||||
getCurrentController().getFrame().getContainerWindow();
|
||||
|
||||
|
@ -97,8 +97,6 @@ public class AccessibleMenuItem extends TestCase {
|
||||
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
Object atw = tk.getActiveTopWindow();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -75,8 +75,6 @@ public class AccessibleMenuSeparator extends TestCase {
|
||||
PrintWriter log) {
|
||||
shortWait();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
|
||||
getCurrentController().getFrame().getContainerWindow();
|
||||
|
||||
|
@ -142,8 +142,6 @@ public class AccessiblePopupMenu extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(
|
||||
aModel);
|
||||
|
||||
|
@ -219,8 +219,6 @@ public class AccessibleRadioButton extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(
|
||||
XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
util.utils.shortWait(2000);
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -142,8 +142,6 @@ public class AccessibleScrollBar extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(
|
||||
aModel);
|
||||
|
||||
|
@ -134,8 +134,6 @@ public class AccessibleStatusBar extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
final XWindow xWindow =
|
||||
UnoRuntime.queryInterface(XModel.class, xTextDoc).
|
||||
getCurrentController().getFrame().getContainerWindow();
|
||||
|
@ -144,8 +144,6 @@ public class AccessibleStatusBarItem extends TestCase {
|
||||
XInterface oObj = null;
|
||||
XInterface secondItem = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
|
||||
aModel);
|
||||
|
||||
|
@ -211,8 +211,6 @@ public class AccessibleTabControl extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(
|
||||
XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -218,8 +218,6 @@ public class AccessibleTabPage extends TestCase {
|
||||
XExtendedToolkit tk = UnoRuntime.queryInterface(
|
||||
XExtendedToolkit.class, oObj);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
shortWait();
|
||||
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
|
||||
|
@ -136,8 +136,6 @@ public class AccessibleToolBox extends TestCase {
|
||||
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
|
||||
getCurrentController().getFrame().getContainerWindow();
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
AccessibilityTools.printAccessibleTree(log, xRoot, tParam.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
|
||||
|
@ -151,8 +151,6 @@ public class AccessibleToolBoxItem extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
|
||||
aModel);
|
||||
|
||||
|
@ -157,8 +157,6 @@ public class AccessibleWindow extends TestCase {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(
|
||||
aModel);
|
||||
|
||||
|
@ -247,8 +247,6 @@ public class ViewForwarder {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
XAccessible parent = null;
|
||||
@ -657,8 +655,6 @@ public class ViewForwarder {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
XAccessible parent = null;
|
||||
@ -863,8 +859,6 @@ public class ViewForwarder {
|
||||
System.out.println("While waiting :" + e) ;
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(xModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
@ -995,8 +989,6 @@ public class ViewForwarder {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -169,8 +169,6 @@ public class AccessibleRelationSet {
|
||||
|
||||
XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc);
|
||||
|
||||
new AccessibilityTools();
|
||||
|
||||
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
@ -69,7 +69,6 @@ public class CheckIndeterminateState {
|
||||
|
||||
XInterface oObj = null;
|
||||
|
||||
new AccessibilityTools();
|
||||
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(aModel);
|
||||
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user