| Summary: | Error reporting/handling should be protected from runtime exceptions to prevent workbench shutdown | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Remy Suen <remy.suen> | ||||||
| Component: | UI | Assignee: | Remy Suen <remy.suen> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Eric Moffatt <emoffatt> | ||||||
| Severity: | blocker | ||||||||
| Priority: | P3 | ||||||||
| Version: | 1.0 | ||||||||
| Target Milestone: | 4.1 M4 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
Remy Suen
Created attachment 184493 [details]
PartRenderingEngine patch v1
Eric, please take a look.
Patch released to CVS HEAD. Created attachment 184507 [details]
Patch that also safes up setting focus as well as widget disposal
We have to trap exceptions that occur on the widget disposal in SWTPartRenderer#disposeWidget. Without this we don't proceed with the 'uninject' of the contribution or the disposal of its context.
While not as serious this also traps and reports and error if an attempt to set the focus to a CompatibilityPart throws an exception.
I added a test to PartRenderingEngineTests to check that a bad DisposeListener won't prevent the @PreDestroy from being called. |