The Trunk: HelpSystem-Core-ct.118.mcz

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

The Trunk: HelpSystem-Core-ct.118.mcz

commits-2
Marcel Taeumel uploaded a new version of HelpSystem-Core to project The Trunk:
http://source.squeak.org/trunk/HelpSystem-Core-ct.118.mcz

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

Name: HelpSystem-Core-ct.118
Author: ct
Time: 20 September 2019, 7:57:28.579726 pm
UUID: 25ce7919-9959-4c4f-a69d-bd267af4d4fe
Ancestors: HelpSystem-Core-mt.116

HelpBrowser: Add + refactor instance creation methods

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

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>>openForCodeOn: (in category 'instance creation') -----
  openForCodeOn: aHelpTopic
       
+ ^ ToolBuilder open: ((self on: aHelpTopic)
+ buildForCodeWith: ToolBuilder default)!
- | browser window |
- browser := (self defaultHelpBrowser new)
- rootTopic: aHelpTopic;
- yourself.
- window := ToolBuilder open: (browser buildForCodeWith: ToolBuilder default).
-
- ^ window!

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!