Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 414344

Summary: [clean up] Incorrect '0 of 31 clean ups selected' label in clean up dialog
Product: [Eclipse Project] JDT Reporter: Deepak Azad <deepakazad>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: manju656
Version: 3.8   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard: stalebug
Attachments:
Description Flags
screenshot none

Description Deepak Azad CLA 2013-08-02 20:12:10 EDT
Created attachment 234072 [details]
screenshot

Version: 4.3.0
Build id: I20130605-2000

See screenshot. At least one clean up is selected but the label says 0.

The bug is essentially the caused by the unpredictable order in which the observers are notified. Also see bug 358823 comment 1.

The count is updated here - org.eclipse.jdt.internal.ui.preferences.cleanup.CleanUpTabPage.setSelectedCleanUpCount(int)

The label is updated here - org.eclipse.jdt.internal.ui.preferences.cleanup.CleanUpModifyDialog.updateCountLabel()

If the label is updated before the counts are updated then things fail.
Comment 1 Martin Mathew CLA 2013-08-05 02:01:28 EDT
Not able to reproduce right away. But we have noticed similar discrepancy before in clean up preference page.
Comment 2 Eclipse Genie CLA 2020-01-15 19:50:23 EST
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.