Reputation: 219
I want to display changelog in first run after plugin update. I interested where should I keep information about version of plugin. I'm thought about preference /.metadata/.plugins/org.eclipse.core.runtime/.settings
but I'm not sure it's good idea.
Upvotes: 0
Views: 43
Reputation: 111142
Platform.getStateLocation
returns you a directory where you can keep any information you like.
Bundle bundle = ... your plugin bundle ...
IPath dirPath = Platform.getStateLocation(bundle);
The directory will usually be .metadata/.plugins/<your plugin id>
in the workspace.
Upvotes: 1