Bug 244538 - Incorrect behavior using the "Restore Defaults" button
Summary: Incorrect behavior using the "Restore Defaults" button
Status: CLOSED FIXED
Alias: None
Product: MTJ (Archived)
Classification: Tools
Component: UI (show other bugs)
Version: 0.9   Edit
Hardware: PC Linux
: P4 minor (vote)
Target Milestone: 0.9   Edit
Assignee: Diego Madruga Sandin CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui, usability
Depends on:
Blocks:
 
Reported: 2008-08-19 09:12 EDT by Edwin Carlo Ribeiro Marinho CLA
Modified: 2008-10-15 09:24 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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