The Inbox: HelpSystem-Core-ct.133.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: HelpSystem-Core-ct.133.mcz

commits-2
A new version of HelpSystem-Core was added to project The Inbox:
http://source.squeak.org/inbox/HelpSystem-Core-ct.133.mcz

==================== Summary ====================

Name: HelpSystem-Core-ct.133
Author: ct
Time: 17 September 2020, 1:39:15.362813 pm
UUID: ccf30c3d-f0c8-584b-8c04-51e436bad97c
Ancestors: HelpSystem-Core-mt.119

Adds HelpBrowser class >> #on: for conveniently instantiating but not opening a HelpBrowser.

=============== Diff against HelpSystem-Core-mt.119 ===============

Item was added:
+ ----- Method: HelpBrowser class>>on: (in category 'instance creation') -----
+ on: aHelpTopic
+
+ ^ self defaultHelpBrowser new
+ rootTopic: aHelpTopic;
+ yourself!

Item was changed:
  ----- Method: HelpBrowser class>>openOn: (in category 'instance creation') -----
  openOn: aHelpTopic
+ "Open the receiver on the given help topic or any other object that can be transformed into
+ a help topic by sending #asHelpTopic."
+
+ ^ (self on: aHelpTopic) open!
-         "Open the receiver on the given help topic or any other object that can be transformed into
-          a help topic by sending #asHelpTopic."
-        
-         ^(self defaultHelpBrowser new)
-                 rootTopic: aHelpTopic;
-                 open!