Where does Eclipse store preferences?

前端 未结 4 1374
半阙折子戏
半阙折子戏 2020-12-23 19:35

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

4条回答
  •  生来不讨喜
    2020-12-23 20:23

    The preferences are stored in prefs files in the workspace at .metadata/.plugins/org.eclipse.core.runtime/.settings. There is one prefs-file for each plugin contributing preferences.

    The programmatical access to the entire preferences is done with IPreferencesService the which you may obtain using Platform.getPreferencesService().

    You may find more information and examples on how to use them in the Runtime preferences Eclipse help page.

提交回复
热议问题