Eclipse存储偏好设置在哪里? [英] Where does Eclipse store preferences?

查看:225
本文介绍了Eclipse存储偏好设置在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



奖金:有什么办法,使用Java,Eclipse RCP等,以编程方式访问设置?



谢谢!



解决方案

资料来源: Eclipse wiki



如果您希望将偏好设置从一个版本保留到其他,使用文件/导出/首选项导出。



首选项存储在各种场合(适用于Eclipse 3.1)


$ b $对于每个安装(对于多用户安装,这可能会有所不同),存储在
< eclipse_home> /eclipse/configuration/.settings /



每个插件通常有一个文件,带有一个prefs扩展名。请注意,很少有插件使用安装范围的首选项。



对于每个工作区,存储在< workspace> /。metadata / .plugins / org.eclipse.core.runtime / .settings



每个插件通常有一个文件,带有一个prefs扩展名。
每个项目 - 对于项目级设置 - 存储在项目文件夹的.settings子目录中的文件。



Here's 使用java代码访问首选项的文章。


When I change a setting in a window like in the screenshot below, where are those settings actually stored?

Bonus: Is there any way, using Java, Eclipse RCP etc, to access the settings programmatically?

Thanks!

解决方案

Source : Eclipse wiki

If you want to keep preferences from one version to the other, export them using File/Export/Preferences.

Preferences are stored in various places (this applies to Eclipse 3.1)

for each installation (but this may vary for multi-user installations), in files stored in: <eclipse_home>/eclipse/configuration/.settings/

There is typically one file per plugin, with a prefs extension. Note that very few plug-ins use installation-wide preferences.

for each workspace, in files stored in <workspace>/.metadata/.plugins/org.eclipse.core.runtime/.settings .

There is typically one file per plugin, with a prefs extension. for each project --for project-level settings -- in files stored in a .settings sub-directory of your project folder.

Here's the article to access preferences using java code.

这篇关于Eclipse存储偏好设置在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆