String message = ImageAnalyzer.createMsg(ImageAnalyzer.bundle.getString("Error"), new String[] { operation,
filename });
String errorMessage = "";
if (e != null)
if (e instanceof SWTException) {
SWTException swte = (SWTException) e;
errorMessage = swte.getMessage();
if (swte.throwable != null)
errorMessage += ":\n" + swte.throwable.toString();
} else if (e instanceof SWTError) {
SWTError swte = (SWTError) e;
errorMessage = swte.getMessage();
if (swte.throwable != null)
errorMessage += ":\n" + swte.throwable.toString();
} else
errorMessage = e.toString();
box.setMessage(message + errorMessage);