Bug 263092 - [Workbench] [Serviceability] Access System Summary via public API
Summary: [Workbench] [Serviceability] Access System Summary via public API
Status: ASSIGNED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P5 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform UI Triaged CLA
QA Contact:
URL:
Whiteboard:
Keywords: api, helpwanted
Depends on:
Blocks:
 
Reported: 2009-01-30 15:18 EST by Alexander Karnstedt CLA
Modified: 2014-06-13 10:52 EDT (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 Alexander Karnstedt CLA 2009-01-30 15:18:11 EST
I found it bit obstructing that there is no easy way to get the system summary information (shown in the AboutSystemDialog).

I want to make a service call function that automatically encloses the system summary information. Therefore I have to rewrite all the things from the AboutSystemDialog - hence use internal classes from org.eclipse.ui.internal.

For those cases it would be nice to gain the system summary text via a simple public API function.
Comment 1 Prakash Rangaraj CLA 2009-01-31 00:33:22 EST
Can you specify what information that are looking for?
Comment 2 Alexander Karnstedt CLA 2009-01-31 07:12:07 EST
I'm looking for the same information that is displayd within the AboutSystemDialog - that dialog you'll get with Help>About>Configuration Details

The problem is, that these "Configuration Details" are difficult to get outside that dialog. I'm missing a simple function like Platform.getConfigurationDetails() ... that gave me the same String that is shown in the AboutSystemDialog.

For now I have to copy all the code out of the AboutSystemDialog. So I have to access a lot of internal classes.

Comment 3 Paul Webster CLA 2009-02-03 10:49:05 EST
The text is all provided by one call, org.eclipse.ui.internal.ConfigurationInfo.getSystemSummary()

What information do you need that is not included by that?

PW
Comment 4 Alexander Karnstedt CLA 2009-02-03 16:27:42 EST
Ah ok, I see - thank you Paul. I accidentally looked at 3.3 sources.

It's just a bit disadvantageous ConfigurationInfo is an internal class.
Comment 5 Steve Bolton CLA 2014-04-03 10:51:51 EDT
We use this call as it is very useful for creating a summary string that we can embed in our problem reporting.  The information is generally useful and already publicised in the  Eclipse About dialog -> System Information, Configuration tab.

It really should be a public API - to write similar code would require cloning several internal values and we would rather it is standardised.

You could add the following static method to PlatformUI class or some new public class.
	
	public static String getSystemSummary() {
		return ConfigurationInfo.getSystemSummary();
	}

Thanks