SystemReporter
Last updated at 12:00 am UTC on 30 January 2019
SystemReporter offers a window where information about the system is gathered. This can be easily copied to the clipboard and be attached to a bug report for better identification of the context the bug occured in.
To extend the SystemReporter:
- add a method
reportXYZ: aStream
to the reporting category
- insert a line
add: #XYZ method: #reportXYZ
to the initialize method
TheWorldMainDockingBar aboutSqueak
| m |
m := SystemReporter open.
m label: 'About Squeak' translated.
Example of adding meta data
In the category 'reporting' of SystemReporter put
reportMetaData: aStream
| dict |
dict := Project topProject projectParameters.
self header: 'Meta data' on: aStream.
(dict at: #title ifAbsent: [nil]) notNil ifTrue: [aStream nextPutAll: (dict at: #title);cr].
(dict at: #tags ifAbsent: [nil]) notNil ifTrue: [aStream nextPutAll: (dict at: #tags);cr].
Add meta data in a workspace, for example
Project topProject projectParameters at: #title put: 'January 2019'
Project topProject projectParameters at: #tags put: 'Notes Dictionary BIM WorkImage'
Result: If you choose 'About' (In the Squeak) menu, you get this meta data.