Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 316375 - Add ability to inject preference nodes
Summary: Add ability to inject preference nodes
Status: RESOLVED FIXED
Alias: None
Product: e4
Classification: Eclipse Project
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 1.0 RC0   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-09 16:15 EDT by Oleg Besedin CLA
Modified: 2010-06-09 16:56 EDT (History)
1 user (show)

See Also:


Attachments
Patch (3.09 KB, patch)
2010-06-09 16:15 EDT, Oleg Besedin CLA
no flags Details | Diff

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