Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Correct way to get at values in plugin.properties?
Correct way to get at values in plugin.properties? [message #325514] Wed, 20 February 2008 13:03
Eclipse UserFriend
What is the correct way to get at the values held in plugin.properties?

I can get the values by doing the following; however getDescriptor() and
getResourceBundle() are deprecated?

/**
* @param key
* @return the value associated with the key located in plugin.properties
file.
*/
public static String getString (String key)
{
GooberPlugin gooberPlugin = GooberPlugin.getDefault ();
IPluginDescriptor pluginDescriptor = gooberPlugin.getDescriptor ();
ResourceBundle plugin_properties = pluginDescriptor.getResourceBundle
();

return plugin_properties.getString (key);
}
Previous Topic:How to create Eclipse Watchpoint breakpoints
Next Topic:Eclipse 3.3.1 does not generate java1.5 class files
Goto Forum:
  


Current Time: Thu May 08 03:45:23 EDT 2025

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

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

Back to the top