java - Handling Unhandled event loop exception in Eclipse Plugin -


we developing product based on eclipse (it's eclipse plugin , have around 60+ plugin projects), using log4j logging framework , using log errors on business logic side. not finding way handle ui errors eclipse throws in case if there bugs in ui, example:

caused by: org.eclipse.swt.swtexception: widget disposed 

i talking these type of errors. how handle exception can log in our log files, bugs can identified.

i tried this stackoverflow question, says override public void eventloopexception(throwable exception) workbenchadvisor class.

i tried this, in 1 of our ui plugin project this:

public class customworkbenchadvisor extends workbenchadvisor {      @override     public void eventloopexception(throwable exception) {         system.out.println("error occured");         super.eventloopexception(exception);     } } 

and delbrately created ui error, when see console, don't see "error occured" displayed instead displays:

!message unhandled event loop exception 

with stacktrace. can guide me how can handle these type of errors?

you have specify customized workbenchadvisor in platformui.createandrunworkbench call creates application. call in main application class specified in <run> entry <application> extension point in application plugin.xml.


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -