Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Preferences and default values
Preferences and default values [message #1707325] Thu, 03 September 2015 17:13 Go to next message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
I'm puzzled by the way preferences work: In 3.x one could write

AbstractUIPlugin.getPreferenceStore().get("key")

This would get the value from the instance and - if not defined - from the default scope. In particular, I was able to set a default value in plugin_customization.ini.

In e4 I tried the same thing in the new way:

@Inject
void amethod(@Preference(nodePath="my-plugin-id", value="key") String myPrefValue) {
...


This gives me the value of the pref if it is defined in the instance scope. But it fails to load the value from the default scope, ie from plugin_customization.ini.

Thanks for any help
Peter

Re: Preferences and default values [message #1731336 is a reply to message #1707325] Wed, 04 May 2016 12:08 Go to previous message
Peter Kullmann is currently offline Peter KullmannFriend
Messages: 240
Registered: July 2009
Senior Member
This seems to be fixed in 4.5.2
Previous Topic:P2 update from specific repo to latest
Next Topic:@FXMLLoader Deprecated
Goto Forum:
  


Current Time: Tue Sep 25 07:33:45 GMT 2018

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

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

Back to the top