Reputation: 93
I need to get the Eclipse version programmatically but I've not found a way to get that version. Could anyone have a suggestion, please?
Thanks in advance for your time.
Upvotes: 1
Views: 1379
Reputation: 111142
There are lots of versions in Eclipse, the nearest to what you want is probably the org.eclipse.platform
version. So try
Version version = Platform.getBundle("org.eclipse.platform").getVersion();
Upvotes: 3
Reputation: 1806
you can try this,
org.eclipse.core.runtime.Platform.getBundle("my.feature.id").getHeaders().get("Bundle-Version");
Upvotes: 0