| GEF Errors [message #168749] |
Fri, 18 February 2005 10:30  |
Eclipse User |
|
|
|
Originally posted by: a.morgan.pilz.ie
Hi Guys,
I am having trouble debugging my GEF application because of the poor error
information I am getting.
For example when creating an EditPart I call a method which in certain
circumstances returns null.
This error is not reported right away but instead I get the error message at
the end of this post returned.
Obviously this is of no use to me and I end up stepping through every line
to find the problem.
And when I do get NullPointer or ClassCastExceptions they never have
stacktraces.
Does everyone else suffer from this or am I doing something wrong ?
Thanks,
Alan.
Unhandled event loop exception
Reason:
Widget is disposed
right away but instead I get this returned
|
|
|
|
|
|
| Re: GEF Errors [message #171138 is a reply to message #168749] |
Wed, 09 March 2005 03:18  |
Eclipse User |
|
|
|
Originally posted by: kvdijken.tiscali.nl
I got this error (or a similar, don't remember exactly) in this scenario:
- open multiple GEF editors in eclipse
- close eclipse
- open eclipse again, it will show tabs for each editor in the previous
session, but only calls createPartControl() for the active editor.
- close eclipse again. At this moment I got this error message in
createPartControl() for an editor for which only the tab was displayed but
not has become active yet (in this eclipse-session). I suppose on closing
eclipse, all editors are closed one-by-one. By closing one of the editors,
the next one becomes active, and createPartControl() for that editor gets
called. When you do something on the Composite parent of this editor in
createPartControl (as I did) you will get the errormessage on the parent,
which is disposed at that time.
Hop this helps,
Koen
news.eclipse.org wrote:
> Hi Guys,
> I am having trouble debugging my GEF application because of the poor error
> information I am getting.
> For example when creating an EditPart I call a method which in certain
> circumstances returns null.
> This error is not reported right away but instead I get the error message at
> the end of this post returned.
> Obviously this is of no use to me and I end up stepping through every line
> to find the problem.
> And when I do get NullPointer or ClassCastExceptions they never have
> stacktraces.
> Does everyone else suffer from this or am I doing something wrong ?
> Thanks,
> Alan.
> Unhandled event loop exception
> Reason:
> Widget is disposed
> right away but instead I get this returned
|
|
|
Powered by
FUDForum. Page generated in 0.06528 seconds