throw new StatusException("Couldn't get by index", e);
}
//get a Shape
log.println( "getting Shape" );
XShapes oShapes = (XShapes) UnoRuntime.queryInterface
(XShapes.class, oDP);
XInterface oObj = SOF.createShape
(xDrawDoc, 5000, 3500, 7500, 5000, "Rectangle");
for (int i=0; i < 10; i++) {
oShapes.add(
SOF.createShape(xDrawDoc,
5000, 3500, 7510 + 10 * i, 5010 + 10 * i, "Rectangle"));
}
XShape oShape = SOF.createShape
(xDrawDoc, 3000, 4500, 15000, 1000, "Ellipse");
oShapes.add((XShape) oObj);
oShapes.add((XShape) oShape);
log.println( "creating a new environment for XShape object" );
TestEnvironment tEnv = new TestEnvironment( oObj );
log.println( "adding two style as ObjRelation for ShapeDescriptor" );