* @param fileName the filename to save screenshot to.
* @return <code>true</code> if the screenshot was created and saved, <code>false</code> otherwise.
* @since 1.0
*/
public static boolean captureScreenshot(final String fileName) {
return UIThreadRunnable.syncExec(new BoolResult() {
public boolean run() {
return captureScreenshotInternal(fileName);
}
});
}