Report errors.
00026 {
00027 IStatus status = null;
00028 if (throwable instanceof CoreException) {
00029 status = ((CoreException) throwable).getStatus();
00030 } else {
00031 status = new Status(IStatus.ERROR, ConfigurationConstants.PLUGIN_ID, 0,
00032 message, throwable);
00033 }
00034 ErrorDialog.openError(SubmitPlugin.getActiveWorkbenchWindow()
00035 .getShell(), "Error", message, status);
00036 }