diff options
Diffstat (limited to 'toolkit/test/accessibility/TopWindowListener.java')
-rw-r--r-- | toolkit/test/accessibility/TopWindowListener.java | 33 |
1 files changed, 7 insertions, 26 deletions
diff --git a/toolkit/test/accessibility/TopWindowListener.java b/toolkit/test/accessibility/TopWindowListener.java index 85cbc39f3e22..eeb781534292 100644 --- a/toolkit/test/accessibility/TopWindowListener.java +++ b/toolkit/test/accessibility/TopWindowListener.java @@ -85,38 +85,19 @@ class TopWindowListener System.out.println ("top level window not accessible"); else { - if ( ! FilterTopLevelNode (xContext)) + Object aRootObject = maModel.getRoot(); + if (aRootObject instanceof VectorNode) { - Object aRootObject = maModel.getRoot(); - if (aRootObject instanceof VectorNode) - { - VectorNode aRoot = (VectorNode) aRootObject; - AccessibleTreeNode aNode = - NodeFactory.Instance().createDefaultNode (xNewTopLevelObject, aRoot); - aRoot.addChild (aNode); - maModel.fireTreeNodesInserted (maModel.createEvent (aRoot, aNode)); - } + VectorNode aRoot = (VectorNode) aRootObject; + AccessibleTreeNode aNode = + NodeFactory.Instance().createDefaultNode (xNewTopLevelObject, aRoot); + aRoot.addChild (aNode); + maModel.fireTreeNodesInserted (maModel.createEvent (aRoot, aNode)); } } } } - /** Ignore windows that have no accessible name, i.e. do not represent - document windows. - @return - Returns <true/> when the given object should not be displayed, - i.e. filtered out. - */ - private boolean FilterTopLevelNode (XAccessibleContext xContext) - { - // No filtering at the moment. - return false; - // return xContext.getAccessibleName().length() == 0; - } - - - - /** Remove an existing top level node from the tree. @param xNewTopLevelObject The accessible object to remove. |