final SWTBot bot = new SWTBot();
return UIThreadRunnable.syncExec( bot.getDisplay(), new IntResult()
{
public Integer run()
{
DeviceData info = bot.getDisplay().getDeviceData();
if ( !info.tracking )
{
fail( "To run this test options 'org.eclipse.ui/debug' and 'org.eclipse.ui/trace/graphics' must be true." );
}
return info.objects.length;