Bug 244538

Summary: Incorrect behavior using the "Restore Defaults" button
Product: [Tools] MTJ (Archived) Reporter: Edwin Carlo Ribeiro Marinho <edwin.carlo>
Component: UIAssignee: Diego Madruga Sandin <wds057>
Status: CLOSED FIXED QA Contact:
Severity: minor    
Priority: P4 CC: hugo.raniere, wds057, wgp010
Version: 0.9Keywords: ui, usability
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Edwin Carlo Ribeiro Marinho CLA 2008-08-19 09:12:59 EDT
Build ID: M20080221-1800

Steps To Reproduce:
1. Open the Preferences (Window > Preferences...)
2. Select "New MIDlet Project" option inside "Mobile Tools for Java" tree on the left pane
3. Uncheck the "Automatically Use Resources Directory in New Projects" checkbox
4. Press the "Restore Defaults" button

The field "Resources Directory" should be enabled but it is not because of the third step. The same behavior happens on the "Over the Air" with the field "Specified Port" that should be disabled when "Use Specified Port" is unchecked.

More information:
Comment 1 Diego Madruga Sandin CLA 2008-09-01 16:06:42 EDT
The error was in the org.eclipse.mtj.ui.internal.utils.ValueChangeTrackingBooleanFieldEditor class.
It should override the method org.eclipse.jface.preference.BooleanFieldEditor#doLoadDefault() and invoke the private method updateEditorEnablement().

The "Restore Defaults" button behavior is now correct. This fix will be available in the N20080902 Nightly Build
Comment 2 Gustavo de Paula CLA 2008-10-15 09:24:21 EDT
all bugs we integrated and release on MTj 0.9