Bug 227661 - [StatusHandling] Support tray broken for single errors, shows wrong IStatus
Summary: [StatusHandling] Support tray broken for single errors, shows wrong IStatus
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.4 M7   Edit
Assignee: Szymon Brandys CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
: 221856 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-17 17:19 EDT by Tim deBoer CLA
Modified: 2008-05-05 06:11 EDT (History)
3 users (show)

See Also:


Attachments
Fix (1.08 KB, patch)
2008-04-18 07:42 EDT, Krzysztof Daniel CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tim deBoer CLA 2008-04-17 17:19:26 EDT
The support tray's lastSelectedStatus remains null until more than one error occurs while the dialog is open. If it's null, then the support tray's createContents() method will never create the support area correctly, and any provider registered via Policy.setErrorSupportProvider() will never appear.

In other words, the support tray doesn't show anything until you get at least two bad errors. If you only get a single fatal error, you can't get any support.
Comment 1 Tim deBoer CLA 2008-04-17 17:26:28 EDT
Found some worse behaviour - if the dialog reopens with a single error the next time, it still shows the *previous* status in the content area, giving the user the wrong support!
Comment 2 Krzysztof Daniel CLA 2008-04-18 07:42:53 EDT
Created attachment 96586 [details]
Fix
Comment 3 Szymon Brandys CLA 2008-04-18 08:03:58 EDT
Released to HEAD.
Comment 4 Krzysztof Daniel CLA 2008-04-19 05:46:58 EDT
*** Bug 221856 has been marked as a duplicate of this bug. ***
Comment 5 Szymon Brandys CLA 2008-04-21 06:22:16 EDT
Fixed.
Comment 6 Szymon Brandys CLA 2008-05-05 06:11:30 EDT
Verified in I20080502-0100.