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);
XAccessibleAction act = null;
try {
//activate Edit-Menu
XAccessible Menu = MenuBar.getAccessibleChild(1);
act = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, Menu);
act.doAccessibleAction(0);
shortWait();
//get a menue-separator
oObj = Menu.getAccessibleContext().getAccessibleChild(3);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
e.printStackTrace(log);
}
log.println("ImplementationName " + utils.getImplName(oObj));