} catch (SWTError e) { showErrorDialog(bundle.getString("Saving_lc"), fileName, e);
	void menuSave() {		if (image == null) return;		animate = false; // stop any animation in progress		// If the image file type is unknown, we can't 'Save',		// so we have to use 'Save As...'.		if (imageData.type == SWT.IMAGE_UNDEFINED || fileName == null) {			menuSaveAs();			return;		}		Cursor waitCursor = new Cursor(display, SWT.CURSOR_WAIT);		shell.setCursor(waitCursor);		imageCanvas.setCursor(waitCursor);		try {			// Save the current image to the current file.			loader.data = new ImageData[] {imageData};			loader.save(fileName, imageData.type);					} catch (SWTException e) {			showErrorDialog(bundle.getString("Saving_lc"), fileName, e);		} finally {			shell.setCursor(null);			imageCanvas.setCursor(crossCursor);			waitCursor.dispose();		}	}