gpezzini
gpezzini

Reputation: 93

How can I get the Eclipse version programmatically?

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

Answers (2)

greg-449
greg-449

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

Sasi Kathimanda
Sasi Kathimanda

Reputation: 1806

you can try this,

 org.eclipse.core.runtime.Platform.getBundle("my.feature.id").getHeaders().get("Bundle-Version");

Upvotes: 0

Related Questions