[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools] Re: Cannot get AboutInfo, compilation error in M5

Zsolt Koppany wrote:

Hi,

since 2.0.1 I use the code below to get the info about the Workbench version. In M5 I cannot get the code compiled (getAboutInfo in undefined). Could somebody provide me a code that is backward compatible.
If not, I just want to figure out the workbench version numbers such as 2.0.2 etc.


AboutInfo aboutInfo =
((Workbench)PlatformUI.getWorkbench()).getAboutInfo();


Worbench is an internal class. Using internal types and methods is at your own risk and can fail at any time.
Having said this, you might want to look at:
BootLoader.getCurrentPlatformConfiguration()
or if you want to go on with the risk:
((Workbench)PlatformUI.getWorkbench()).getConfigurationInfo().getFeaturesInfo();


HTH
Dani