Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Extension Point for Preference Initializer is not called
Extension Point for Preference Initializer is not called [message #210697] Tue, 15 May 2007 09:11 Go to next message
Eclipse UserFriend
Originally posted by: rob.schilling.web.de

Hi,

I have got a problem with the extension points in my project. I try to
initialize some default values to my preference store using an extension
point
"org.eclipse.core.runtime.preferences" with one initializer class in the
plugin.xml. But this class ist never called when the project starts up.

Can anyone help me,

Greets Robert
Re: Extension Point for Preference Initializer is not called [message #210706 is a reply to message #210697] Tue, 15 May 2007 10:49 Go to previous messageGo to next message
Guenther Koegel is currently offline Guenther KoegelFriend
Messages: 56
Registered: July 2009
Member
Dear Robert,

the initialization happens upon first *access* to the preferences. The
call to your class is deferred until it's really needed. Your class
*provides* a way to initialize the variables the same way the activator
initializes your plug-in upon first *access* anywhere in your plug-in.
That's the magic of Eclipse.

Bye

Günther

Robert Schilling wrote:
> Hi,
>
> I have got a problem with the extension points in my project. I try to
> initialize some default values to my preference store using an extension
> point
> "org.eclipse.core.runtime.preferences" with one initializer class in the
> plugin.xml. But this class ist never called when the project starts up.
>
> Can anyone help me,
> Greets Robert
>
Re: Extension Point for Preference Initializer is not called [message #210744 is a reply to message #210706] Tue, 15 May 2007 13:56 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: rob.schilling.web.de

Hmm, it wonŽt start even if i call the preference page, that ist my
problem:-(

greets
Re: Extension Point for Preference Initializer is not called [message #210864 is a reply to message #210744] Wed, 16 May 2007 07:13 Go to previous messageGo to next message
Guenther Koegel is currently offline Guenther KoegelFriend
Messages: 56
Registered: July 2009
Member
Robert Schilling wrote:
> Hmm, it wonŽt start even if i call the preference page, that ist my
> problem:-(
>
> greets
>

Hi Robert,

the preference pages use a different extension:
"org.eclipse.ui.preferencePages". Would you be so kind and check your
implementation with the following questions in mind:

* How is your UI element connected with the preference store of your
plug-in?
* How does your UI element know which preference to use?
* Is your Preference Initializer triggered if you access the preference
store inside your plug-in?

Bye,

Günther
Re: Extension Point for Preference Initializer is not called [message #210913 is a reply to message #210864] Wed, 16 May 2007 09:59 Go to previous message
Eclipse UserFriend
Originally posted by: rob.schilling.web.de

Hmm,

I think weŽre not talking about the same problem. I have got one extension
for the preference page and itŽs UI elements
"org.eclipse.ui.preferencePages" where I have shown all points as I want
them to be, but on this preference page I want to initialize some
textfields with the preferencestore.
My problem is, that I define an extension point for the preferencestore
initialization "org.eclipse.core.runtime.preferences" but this initializer
class is never called by the project.
Previous Topic:I can't restart Eclipse
Next Topic:Reports not generating data in LINUX
Goto Forum:
  


Current Time: Fri Sep 20 06:25:35 GMT 2024

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

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

Back to the top