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();
}
}
},
Any.VOID);
async.addCallback(
new XCallback() {
public void notify(Object aData) {
try {
tools.clickButton("OK");
} catch (RuntimeException e) {
throw e;