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);
log.println("ImplementationName " + utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
final XAccessibleAction action = (XAccessibleAction) UnoRuntime.queryInterface(
XAccessibleAction.class, oObj);
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
action.doAccessibleAction(0);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
}
}
});