*/
public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
PrintWriter log) {
XInterface oObj = null;
XMultiServiceFactory xMSF = (XMultiServiceFactory) Param.getMSF();
XControlModel dlgModel = null;
XWindowPeer the_win = null;
XToolkit the_kit = null;
XDevice aDevice = null;
XGraphics aGraphic = null;
XControl butControl = null;
XControl butControl1 = null;
XControl butControl2 = null;
XTabController tabControl1 = null;
XTabController tabControl2 = null;
XControlContainer ctrlCont = null;
if (xWinDlg != null) {
xWinDlg.dispose();
}
try {
dlgModel = (XControlModel) UnoRuntime.queryInterface(
XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialogModel"));
XControl dlgControl = (XControl) UnoRuntime.queryInterface(
XControl.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlDialog"));
dlgControl.setModel(dlgModel);
XControlModel butModel = (XControlModel) UnoRuntime.queryInterface(
XControlModel.class,
xMSF.createInstance(
"com.sun.star.awt.UnoControlButtonModel"));
butControl = (XControl) UnoRuntime.queryInterface(XControl.class,