PropertyValue[] noArgs = new PropertyValue[0];
getting.dispatch(the_url, noArgs);
shortWait();
XFrame the_frame1 = the_Desk.getCurrentFrame();
if (the_frame1 == null) {
log.println("Current frame was not found !!!");
}
XFrame the_frame2 = the_frame1.findFrame("_beamer", 4);
the_frame2.setName("DatasourceBrowser");
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.TREE);
log.println("ImplementationName: "+ util.utils.getImplName(oObj));
TestEnvironment tEnv = new TestEnvironment(oObj);
final XInitialization xInit = (XInitialization)
UnoRuntime.queryInterface(
XInitialization.class, the_frame2.getController());
Object[] params = new Object[3];
PropertyValue param1 = new PropertyValue();
param1.Name = "DataSourceName";
param1.Value = "Bibliography";