Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Store Preferences within PostContextCreate
Store Preferences within PostContextCreate [message #1156913] Sat, 26 October 2013 22:53 Go to next message
Ralf Heydenreich is currently offline Ralf HeydenreichFriend
Messages: 131
Registered: July 2009
Senior Member
Hi all,
I've tried to use the @Preference injection in a startup class
(annotated with PostContextCreate). But the injected field is null. Is
it possible to access the Preference store while startup?

TIA,
Ralf.
Re: Store Preferences within PostContextCreate [message #1157801 is a reply to message #1156913] Sun, 27 October 2013 13:20 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5467
Registered: July 2009
Senior Member
IIRC this is too early in the lifecycle for extendobjectsupplier to work
(which can and should be fixed by rearranging the bootstrap code in
E4Application!).

For now give @ProcessAdditions a try.

Tom

On 27.10.13 00:53, Ralf Heydenreich wrote:
> Hi all,
> I've tried to use the @Preference injection in a startup class
> (annotated with PostContextCreate). But the injected field is null. Is
> it possible to access the Preference store while startup?
>
> TIA,
> Ralf.
>
Previous Topic:Can anybody clarify how to use color themes in plug-in code?
Next Topic:Issues faced on kepler.
Goto Forum:
  


Current Time: Wed Nov 26 11:31:58 GMT 2014

Powered by FUDForum. Page generated in 0.08361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software