本文介绍了如何以编程方式获取Eclipse版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要以编程方式获取Eclipse版本,但是我没有找到一个方法
来获取该版本。
请问有人可以提出建议吗?
I need to get the Eclipse version programmatically but I've not found a wayto get that version.Could anyone have a suggestion, please?
提前感谢您的时间。
推荐答案
Eclipse中有很多版本,最接近您想要的版本可能是 org.eclipse.platform
版本。所以尝试
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();
这篇关于如何以编程方式获取Eclipse版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!