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:
Noel Grandin 2014-12-19 16:00:53 +02:00
parent 40e48e81af
commit 4bf4e3d407
90 changed files with 4 additions and 185 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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));

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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);

View File

@ -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);

View File

@ -150,8 +150,6 @@ public class AccessibleBrowseBox extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -196,8 +196,6 @@ public class AccessibleBrowseBoxHeaderBar extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -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);

View File

@ -189,8 +189,6 @@ public class AccessibleBrowseBoxTable extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -180,8 +180,6 @@ public class AccessibleBrowseBoxTableCell extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -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,

View File

@ -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());

View File

@ -101,8 +101,6 @@ public class AccessibleTabBar extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
shortWait();
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xDoc).

View File

@ -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());

View File

@ -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,

View File

@ -170,8 +170,6 @@ public class AccessibleTreeListBox extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -225,8 +225,6 @@ public class AccessibleTreeListBoxEntry extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = secondController.getFrame().getContainerWindow();
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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));

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -115,8 +115,6 @@ public class SwAccessibleDocumentPageView extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -170,8 +170,6 @@ public class SwAccessiblePageView extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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();

View File

@ -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");

View File

@ -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,

View File

@ -74,8 +74,6 @@ public class AccessibleDropDownComboBox extends TestCase {
PrintWriter log) {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
xTextDoc);

View File

@ -75,8 +75,6 @@ public class AccessibleDropDownListBox extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(
xTextDoc);

View File

@ -137,8 +137,6 @@ public class AccessibleEdit extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());

View File

@ -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));

View File

@ -115,8 +115,6 @@ public class AccessibleList extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());

View File

@ -138,8 +138,6 @@ public class AccessibleListBox extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());

View File

@ -136,8 +136,6 @@ public class AccessibleListItem extends TestCase {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());

View File

@ -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));

View File

@ -73,8 +73,6 @@ public class AccessibleMenuBar extends TestCase {
PrintWriter log) {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
getCurrentController().getFrame().getContainerWindow();

View File

@ -97,8 +97,6 @@ public class AccessibleMenuItem extends TestCase {
shortWait();
new AccessibilityTools();
Object atw = tk.getActiveTopWindow();
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,

View File

@ -75,8 +75,6 @@ public class AccessibleMenuSeparator extends TestCase {
PrintWriter log) {
shortWait();
new AccessibilityTools();
XWindow xWindow = UnoRuntime.queryInterface(XModel.class, xTextDoc).
getCurrentController().getFrame().getContainerWindow();

View File

@ -142,8 +142,6 @@ public class AccessiblePopupMenu extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(
aModel);

View File

@ -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,

View File

@ -142,8 +142,6 @@ public class AccessibleScrollBar extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(
aModel);

View File

@ -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();

View File

@ -144,8 +144,6 @@ public class AccessibleStatusBarItem extends TestCase {
XInterface oObj = null;
XInterface secondItem = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
aModel);

View File

@ -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,

View File

@ -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,

View File

@ -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));

View File

@ -151,8 +151,6 @@ public class AccessibleToolBoxItem extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(
aModel);

View File

@ -157,8 +157,6 @@ public class AccessibleWindow extends TestCase {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentWindow(
aModel);

View File

@ -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);

View File

@ -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);

View File

@ -69,7 +69,6 @@ public class CheckIndeterminateState {
XInterface oObj = null;
new AccessibilityTools();
XWindow xWindow = AccessibilityTools.getCurrentContainerWindow(aModel);
XAccessible xRoot = AccessibilityTools.getAccessibleObject(xWindow);