Object atw = tk.getActiveTopWindow();
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
atw);
XAccessible xRoot = at.getAccessibleObject(xWindow);
at.printAccessibleTree(log, xRoot, Param.getBool(util.PropertyName.DEBUG_IS_ACTIVE));
XAccessibleContext MenuBar = at.getAccessibleObjectForRole(xRoot,
AccessibleRole.MENU_BAR);
try {
//activate Edit-Menu
XAccessible Menu = MenuBar.getAccessibleChild(1);
XAccessibleAction act = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, Menu);
act.doAccessibleAction(0);
shortWait();
//get a menue-item
oObj = Menu.getAccessibleContext().getAccessibleChild(11);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
//oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.MENUITEM);