preAnimation();   try { animateLoop(); } catch (final SWTException e) { display.syncExec(new Runnable() { public void run() { showErrorDialog(createMsg(bundle.getString("Creating_image"), new Integer(imageDataIndex+1)), currentName, e);
while (incrementalEvents != null) {  synchronized (ImageAnalyzer.this) { if (incrementalEvents != null) { if (incrementalEvents.size() > 0) { ImageLoaderEvent event = (ImageLoaderEvent) incrementalEvents.remove(0); if (image != null) image.dispose(); image = new Image(display, event.imageData); imageData = event.imageData; imageCanvasGC.drawImage( image, 0, 0, imageData.width, imageData.height, imageData.x, imageData.y, imageData.width, imageData.height); } else { yield();
				public void run() {					// Pre-animation widget setup.					preAnimation();										// Animate.					try {						animateLoop();					} catch (final SWTException e) {						display.syncExec(new Runnable() {							public void run() {								showErrorDialog(createMsg(bundle.getString("Creating_image"), 										    new Integer(imageDataIndex+1)),										    currentName, e);							}						});					}										// Post animation widget reset.					postAnimation();				}