PropertyValue param3 = new PropertyValue();
param3.Name = "Command";
param3.Value = "biblio";
params[2] = param3;
final XSelectionSupplier xSelect = (XSelectionSupplier) UnoRuntime.queryInterface(
XSelectionSupplier.class, xCont);
final Object[] initArgs = params;
XInterface oObj = null;
try {
oObj = (XInterface)((XMultiServiceFactory)tParam.getMSF())
.createInstance("com.sun.star.awt.Toolkit");
} catch (com.sun.star.uno.Exception e) {
log.println("Couldn't get toolkit");
e.printStackTrace(log);
throw new StatusException("Couldn't get toolkit", e);
}
XExtendedToolkit tk = (XExtendedToolkit) UnoRuntime.queryInterface(
XExtendedToolkit.class, oObj);
AccessibilityTools at = new AccessibilityTools();
XWindow xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
XAccessible xRoot = at.getAccessibleObject(xWindow);
oObj = at.getAccessibleObjectForRole(xRoot, AccessibleRole.TABLE,
"Table");
log.println("ImplementationName: " + util.utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
tEnv.addObjRelation("EventProducer",
new ifc.accessibility._XAccessibleEventBroadcaster.EventProducer() {
public void fireEvent() {
try {
xSelect.select(params);
} catch (com.sun.star.lang.IllegalArgumentException ex) {
}
}
});