| Summary: | Closing a view that exists in another perspective leads to Widget disposed error | ||
|---|---|---|---|
| Product: | [Eclipse Project] e4 | Reporter: | Olivier Thomann <Olivier_Thomann> |
| Component: | UI | Assignee: | Project Inbox <e4.ui-inbox> |
| Status: | RESOLVED WORKSFORME | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | emoffatt, remy.suen |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | stalebug | ||
|
Description
Olivier Thomann
1. Window > Open Perspective > Debug 2. Window > Open Perspective > Java 3. Minimize the 'Outline' view. 4. Click its icon in the trim. 5. Hide the view. 6. The NPE will occur. 1. Detach a view. 2. Minimize it. 3. Restore it. 4. The exception will be thrown. This is a bug in TrimBarLayout. It only ever creates a cache when computeSize(*) is called even though a layout(*) may be requested without a computeSize(*). This leads to disposed controls lying around in the cache and is the cause behind these SWTExceptions. ------ Remy: When a layout is requested (explicitly or the OS), SWT guarantees that layout(*) will be called but not necesasrily computeSize(*), correct? In fact, is computeSize(*) only ever called if someone requests a computeSize(*) on a control, is this correct? Bogdan:that is correct This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie. This is a mass change to close all e4 bugs marked with "stalebug" whiteboard. If this bug is still valid, please reopen and remove the "stalebug" keyword. |