| Summary: | [TabbedProperties] Properties View crashes when reopening with NPE if using Tabbed Properties | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Heinrich Wendel <heinrich.wendel> | ||||
| Component: | UI | Assignee: | Paul Webster <pwebster> | ||||
| Status: | VERIFIED FIXED | QA Contact: | Anthony Hunter <ahunter.eclipse> | ||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | daniel_megert, fredrik.attebrant, remy.suen | ||||
| Version: | 3.6 | ||||||
| Target Milestone: | 4.3 M6 | ||||||
| Hardware: | PC | ||||||
| OS: | Windows XP | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Heinrich Wendel
Heinrich, can you still reproduce this using 3.7 M4? I've ran into the same problem with the org.eclipse.ui.examples.views.properties.tabbed.hockeyleague example. The problem was caused by the HockeyLeagueEditor caching the propertySheetPage. Attaching patch. Created attachment 228051 [details]
Patch fixing the NPE problem
Tested on 3.7.2 and 4.2.1
Released as http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=ec77102203186c7cf66d7af96013bb0a925840ee Thanx. PW Discovered today that the patch doesn't work properly if the user open multiple instances of the properties view. http://wiki.eclipse.org/Platform_UI/Multi-instance_Properties_View In that case, the caching of the propertySheetPage done by the editor will cause problems. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=248103#c26 (In reply to comment #5) > Discovered today that the patch doesn't work properly if the user open > multiple instances of the properties view. So this is a problem in the example, caching the sheet page prevents it from working correctly with multiple properties views? PW in 4.3.0.I20130311-2000 PW > So this is a problem in the example, caching the sheet page prevents it from
> working correctly with multiple properties views?
Yes, the example editor is based on EMF generated editor code where the propertySheetPage is cached.
|