Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337209 - [preferences][JUnit] 'Show newly launched test in all JUnit views' not stored
Summary: [preferences][JUnit] 'Show newly launched test in all JUnit views' not stored
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Markus Keller CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-15 08:38 EST by Dani Megert CLA
Modified: 2011-02-16 03:33 EST (History)
0 users

See Also:


Attachments
Fix (1.41 KB, patch)
2011-02-15 14:21 EST, Markus Keller CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2011-02-15 08:38:10 EST
3.7 M1 and HEAD.

1. enable  'Show newly launched test in all JUnit views'
2. exit
3. start
==> preference is lost.
Comment 1 Markus Keller CLA 2011-02-15 14:21:10 EST
Created attachment 189037 [details]
Fix

Reading of the preference is correct. Storing of the preference is also correct (was only stored in AbstractUIPlugin#stop() -- I'm changing that to store it right from the preferences dialog).

So what was wrong then? JunitPreferenceInitializer opted for too much migration and cleansed all jdt.junit preferences on every restart. This was no big deal as long as there were no new UI preferences, but now it's definitely wrong.
Comment 2 Markus Keller CLA 2011-02-15 14:24:24 EST
> Created attachment 189037 [details] [diff]
> Fix

The relevant fix was in JunitPreferenceInitializer.
Kudos for the incomplete patch go to bug 294650.

Fixed in HEAD.
Comment 3 Dani Megert CLA 2011-02-16 03:33:40 EST
Verified in N20110215-2000.