Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » how to print a stack trace in a dialog?
how to print a stack trace in a dialog? [message #299708] Wed, 22 February 2006 12:47 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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
> }
>
Previous Topic:isDirty error in FormEditor
Next Topic:UI Automation Tools for Eclipse 3.1.x?
Goto Forum:
  


Current Time: Tue Sep 02 19:04:48 EDT 2025

Powered by FUDForum. Page generated in 0.03356 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top