* from table.
*/
public synchronized TestEnvironment createTestEnvironment(
TestParameters tParam, PrintWriter log ) throws StatusException {
XInterface oObj = null;
XTextTable oTable = null;
log.println( "creating a test environment" );
try {
oTable = SOF.createTextTable( xTextDoc );
} catch ( com.sun.star.uno.Exception e ) {
e.printStackTrace( log );
throw new StatusException("Couldn't create TextTable: "
+e.getMessage(),e);
}
try {
SOF.insertTextContent(xTextDoc, oTable );
} catch ( com.sun.star.lang.IllegalArgumentException e ) {
e.printStackTrace( log );
throw new StatusException("Couldn't insert text content: "
+e.getMessage(),e);
}
oObj = oTable.getColumns();
log.println( "creating a new environment for TableColumns object" );
TestEnvironment tEnv = new TestEnvironment( oObj );
// adding relation for XTableColumns