return new Object[] { SWTBotEvents.toString(createEvent), AbstractSWTBot.this.toString() };
}
});
log.trace(MessageFormat.format("Enquing event {0} on {1}", result)); //$NON-NLS-1$
asyncExec(new VoidResult() {
public void run() {
if ((widget == null) || widget.isDisposed()) {
log.trace(MessageFormat.format("Not notifying {0} is null or has been disposed", AbstractSWTBot.this)); //$NON-NLS-1$
return;
}
if (!isEnabledInternal()) {
log.warn(MessageFormat.format("Widget is not enabled: {0}", AbstractSWTBot.this)); //$NON-NLS-1$
return;
}
log.trace(MessageFormat.format("Sending event {0} to {1}", result)); //$NON-NLS-1$
widget.notifyListeners(eventType, createEvent);
log.debug(MessageFormat.format("Sent event {0} to {1}", result)); //$NON-NLS-1$
}
});
UIThreadRunnable.syncExec(new VoidResult() {
public void run() {
// do nothing, just wait for sync.
}
});