|  | 
| 
| Re: How to store data in the $WORKSPACE/.metadata/.plugins/myplugin folder [message #1997 is a reply to message #1950] | Wed, 30 April 2008 19:01  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: eclipse-news.rizzoweb.com 
 Jimmy Shi wrote:
 > Hi,
 > I want to store some plug-in specific data into the workspace, I think
 > the .metadata/.plugins/.myplugin folder is a nice place to store the
 > data. How can I do it?
 
 If you want to use a org.eclipse.core.runtime.Preferences object to
 store simple name/value pairs, just call getPluginPreferences() and
 savePluginPreferences() on your Plugin class. See the Javadoc of
 Preferences to see what it can do.
 If you want to store files, you can call getStateLocation() to get an
 IPath that represents that plugin's metadata state location, and then do
 various things with that (like create/read directories and/or files).
 
 Hope this helps,
 Eric
 |  |  |  | 
| 
| Re: How to store data in the $WORKSPACE/.metadata/.plugins/myplugin folder [message #566321 is a reply to message #1950] | Wed, 30 April 2008 19:01  |  | 
| Eclipse User  |  |  |  |  | Jimmy Shi wrote: > Hi,
 > I want to store some plug-in specific data into the workspace, I think
 > the .metadata/.plugins/.myplugin folder is a nice place to store the
 > data. How can I do it?
 
 If you want to use a org.eclipse.core.runtime.Preferences object to
 store simple name/value pairs, just call getPluginPreferences() and
 savePluginPreferences() on your Plugin class. See the Javadoc of
 Preferences to see what it can do.
 If you want to store files, you can call getStateLocation() to get an
 IPath that represents that plugin's metadata state location, and then do
 various things with that (like create/read directories and/or files).
 
 Hope this helps,
 Eric
 |  |  |  | 
Powered by 
FUDForum. Page generated in 0.04613 seconds