patrio2
patrio2

Reputation: 219

Display changelog after eclipse plugin update

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

Answers (1)

greg-449
greg-449

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

Related Questions