在 eclipse 插件更新后显示变更日志

Display changelog after eclipse plugin update

我想在插件更新后首先 运行 显示更新日志。我感兴趣的是我应该在哪里保存有关插件版本的信息。我考虑过偏好 /.metadata/.plugins/org.eclipse.core.runtime/.settings 但我不确定这是个好主意。

Platform.getStateLocation returns 给你一个目录,你可以在其中保存任何你喜欢的信息。

Bundle bundle = ... your plugin bundle ...

IPath dirPath = Platform.getStateLocation(bundle);

该目录通常在工作区中 .metadata/.plugins/<your plugin id>