ErrorDialog.openError accepts arguments for the title, message, and dialog status (which the message itself has).
I want to show an exception message in the main area and a call stack in the details area. However, both of these options show the call stack in the main area:
void showException(Throwable e) { Status status = new Status(IStatus.ERROR, "SCS Admin", e.getLocalizedMessage(), e); e.printStackTrace; ErrorDialog.openError(getShell(), null, Util.getStackTrace(e), status); } void showException(Throwable e) { Status status = new Status(IStatus.ERROR, "SCS Admin", Util.getStackTrace(e), e); e.printStackTrace; ErrorDialog.openError(getShell(), null, e.getLocalizedMessage(), status); }
How to change it?
source share