Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Global error handling
Global error handling [message #1061304] Fri, 31 May 2013 02:05 Go to next message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hi,

I want to set a custom error handler, which is called each time an unexpected error occurs. How can I achieve that?
My understanding was to replace the Provider<StatusHandler>, is that the right approach? And if so, where should I set it?

Best regards and thanks for any kind of help
Bastian
Re: Global error handling [message #1061385 is a reply to message #1061304] Fri, 31 May 2013 08:14 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hi again,

I think I was a little imprecise and I got a little deeper into this topic by now, but still don't achieve what I desire.

I've got my RCP. Sometimes an error occurs that wasn't predictable. The the standard JFace dialog shows up with the error message. This error dialog I want to be replaced by my own dialog. A little research led me to the JFace Policy. There one can set a StatusHandler. So I replaced it, but its show-method never gets called.
I also added an ErrorSupportProvider to the Policy. That only adds a Control to the default ErrorDialog.
Is anyone experienced in this?

Best regards
Bastian
Re: Global error handling [message #1061945 is a reply to message #1061385] Wed, 05 June 2013 01:44 Go to previous messageGo to next message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Hi,

I'm wondering what is wrong with my question. Is it too trivial or too difficult? Or is it maybe the wrong forum?
But I'd really like to know how to solve this Smile

Bastian
Re: Global error handling [message #1063102 is a reply to message #1061945] Wed, 12 June 2013 06:21 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

Are you on pure e4 or mixed with 3.x?
Re: Global error handling [message #1063103 is a reply to message #1063102] Wed, 12 June 2013 06:34 Go to previous messageGo to next message
Sopot Cela is currently offline Sopot Cela
Messages: 597
Registered: December 2010
Senior Member

http://www.eclipse.org/forums/index.php/mv/msg/377967/915756/#msg_915756
Re: Global error handling [message #1063124 is a reply to message #1063103] Wed, 12 June 2013 08:08 Go to previous message
Bastian Wagenfeld is currently offline Bastian Wagenfeld
Messages: 162
Registered: January 2013
Senior Member
Great!

Thank you, it works fine!

Best regards
Bastian
Previous Topic:Get Navigator Files
Next Topic:Jobs API
Goto Forum:
  


Current Time: Fri Aug 22 11:46:09 EDT 2014

Powered by FUDForum. Page generated in 0.02492 seconds