Hello,
You have to know that operation causing
SWTException(calling method on disposed widget) is in UI thread is called
assynchronously, so there is no way how to find a place where was the cause.
This is what I'm trying to solve.
The problem is finding of the cause of
SWTException.
When there is e.g. attached a listener to Control
which is already disposed and in this listener is this Control accessed, them
there is trown SWTException from UI thread. And there is no information
describing from which Control this Exception was thrown. Things work in a way
that when some Control is already disposed but we are trying to call any
method on this Control, SWTException is thrown. In order to find a place
telling me as a programmer which Control is accessed when is disposed I wanted
to use this trick. Basically I have in eclipse breakpoint for SWTException,
and when it happens, I want to find a place where is object throwing exception
created (meaning java file + line number, which can be acquired from Throwable
by printing its stack trace). And what I wanted to call to acquire this
information is looking in my map which is in another plugin than SWT UI thread
of Eclipse application. And I want to it.
I hope its clearer a little bit.
Jan