how to print a stack trace in a dialog? [message #299708] |
Wed, 22 February 2006 12:47  |
Eclipse User |
|
|
|
Originally posted by: alexandregazola.yahoo.com.br
Hello guys,
IŽm creating a dialog for showing exceptions in my application, through
the following:
try{
// code with possible Exception
} catch (Exception e) {
Shell errorShell = new
Shell(RCCSExplorerPlugin.getDefault().getWorkbench().getDisp lay());
ExceptionDialog exceptionDlg = new ExceptionDialog(errorShell, e);
exceptionDlg.open();
// this prints the stack trace in the console... how to print it in the
dialog????
e.printStackTrace();
How do I print the stack trace of the Exception in the dialog??????
thanks
}
|
|
|
Re: how to print a stack trace in a dialog? [message #299726 is a reply to message #299708] |
Wed, 22 February 2006 19:10  |
Eclipse User |
|
|
|
Originally posted by: varavamu.yahoo.com
would this help?
<code>
org.eclipse.jface.dialogs.MessageDialog.openError(Shell parent, String
title, String message)
</code>
vijay
Alexandre Gazola wrote:
> Hello guys,
> IŽm creating a dialog for showing exceptions in my application,
> through the following:
>
> try{
> // code with possible Exception
>
> } catch (Exception e) {
>
> Shell errorShell = new
> Shell(RCCSExplorerPlugin.getDefault().getWorkbench().getDisp lay());
>
> ExceptionDialog exceptionDlg = new ExceptionDialog(errorShell, e);
>
> exceptionDlg.open();
> // this prints the stack trace in the console... how to print it in
> the dialog????
> e.printStackTrace();
>
> How do I print the stack trace of the Exception in the dialog??????
>
>
> thanks
> }
>
|
|
|
Powered by
FUDForum. Page generated in 0.03356 seconds