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

Bug 316375

Summary: Add ability to inject preference nodes
Product: [Eclipse Project] e4 Reporter: Oleg Besedin <ob1.eclipse>
Component: UIAssignee: Project Inbox <e4.ui-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: ob1.eclipse
Version: unspecified   
Target Milestone: 1.0 RC0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
Patch none

Description Oleg Besedin CLA 2010-06-09 16:15:17 EDT
The "@Preference" annotation can be used to inject values stored in prefernces nodes, but at present does not provide an ability to set or change preference value. 

We can check the desired type of the object to be injected and, if it is IEclipsePreferences, inject the node.

I'll use InstanceScope for injected nodes.
Comment 1 Oleg Besedin CLA 2010-06-09 16:15:48 EDT
Created attachment 171576 [details]
Patch
Comment 2 Oleg Besedin CLA 2010-06-09 16:16:43 EDT
Patch applied to CVS Head.
Comment 3 Brian de Alwis CLA 2010-06-09 16:56:02 EDT
Fantastic!  Thank you Oleg.