*/
public class _XMessageBoxFactory extends MultiMethodTest {
public XMessageBoxFactory oObj = null;
public void _createMessageBox() {
final XMessageBox mb = oObj.createMessageBox(
(XWindowPeer) tEnv.getObjRelation("WINPEER"),
com.sun.star.awt.MessageBoxType.ERRORBOX, 1, "The Title",
"The Message");
final UITools tools = new UITools(
(XMultiServiceFactory) tParam.getMSF(),
UnoRuntime.queryInterface(XWindow.class, mb));
final boolean[] done = new boolean[] { false };
final boolean[] good = new boolean[] { false };
XRequestCallback async = AsyncCallback.create(
tParam.getComponentContext());
async.addCallback(
new XCallback() {
public void notify(Object aData) {
mb.execute();
synchronized (done) {
done[0] = true;
done.notifyAll();
}
}