Bug 26596 - [Workbench] obtaining name of platform/IDE at time of execution
Summary: [Workbench] obtaining name of platform/IDE at time of execution
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.1   Edit
Hardware: Other Windows XP
: P3 enhancement (vote)
Target Milestone: 3.0 M8   Edit
Assignee: Nick Edgar CLA
QA Contact:
URL:
Whiteboard:
Keywords: api
Depends on: 54790
Blocks:
  Show dependency tree
 
Reported: 2002-11-18 11:35 EST by Dan Rubel CLA
Modified: 2004-03-26 12:43 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dan Rubel CLA 2002-11-18 11:35:48 EST
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.
Comment 1 Nick Edgar CLA 2003-09-29 23:07:29 EDT
The AboutInfo is being made public API in the RCP stream, which will be merged 
into HEAD for M5.
Comment 2 Nick Edgar CLA 2003-11-17 22:00:57 EST
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.
Comment 3 Nick Edgar CLA 2004-03-15 00:24:19 EST
In 3.0, you will be able to obtain this using Platform.getProduct().getName().
However, it's not working yet.  See bug 54790.
Comment 4 Nick Edgar CLA 2004-03-22 14:22:01 EST
This should work now.
To be safe, you should still check for a null result from Platform.getProduct().
Comment 5 Ines Khelifi CLA 2004-03-25 13:04:54 EST
Verfied.
Comment 6 Ines Khelifi CLA 2004-03-26 12:43:44 EST
Verfie on Windows XP with Build id: 200403260800.