Community
Participate
Working Groups
As part of our product, we would like to obtain the name of the platform/IDE (e.g. "Eclipse", "WebSphere Studio Application Developer") at time of execution. This information is available via ((Workbench) PlatformUI.getWorkbench()).getAboutInfo().getProductName() but we would rather use a public API if available.
The AboutInfo is being made public API in the RCP stream, which will be merged into HEAD for M5.
We decided not to make AboutInfo be API after all. We are rethinking the feature mechanism and didn't want to expose AboutInfo, which is a half-baked solution. We will need to address this though, since the IDE layer needs it.
In 3.0, you will be able to obtain this using Platform.getProduct().getName(). However, it's not working yet. See bug 54790.
This should work now. To be safe, you should still check for a null result from Platform.getProduct().
Verfied.
Verfie on Windows XP with Build id: 200403260800.