Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 102237 - Cancel "rebuild?" dialog disables OK button on preference pane
Summary: Cancel "rebuild?" dialog disables OK button on preference pane
Status: RESOLVED DUPLICATE of bug 99635
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-29 20:01 EDT by Walter Harley CLA
Modified: 2005-06-29 20:03 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Harley CLA 2005-06-29 20:01:43 EDT
View a preference pane that affects the Java build, such as the Compiler 
Compliance preferences.  Make a change and click OK.  A dialog titled "Compiler 
Settings Changed" appears.  Click "cancel" on that dialog.

Now, the OK button on the underlying preference pane is disabled, and it 
remains disabled even if additional changes are made.  The Apply button is 
still enabled, and does work (so, the user can press Apply and then Cancel, 
getting the same net effect as if they had pressed OK).  Switching to another 
preference pane, and then back, will re-enable the OK button.

This problem does not occur when the rebuild dialog is triggered by pressing 
Apply; only when it is triggered by pressing OK.

I imagine the fix is to re-enable the OK button in 
org.eclipse.jface.preference.PreferenceDialog.okPressed() in this case, but I 
don't know why it's being disabled there in the first place.
Comment 1 Walter Harley CLA 2005-06-29 20:03:50 EDT

*** This bug has been marked as a duplicate of 99635 ***