A new version of HelpSystem-Core was added to project The Inbox: http://source.squeak.org/inbox/HelpSystem-Core-kks.109.mcz
==================== Summary ====================
Name: HelpSystem-Core-kks.109 Author: kks Time: 8 March 2019, 2:52:33.288436 pm UUID: a50742bc-0442-4e86-8c1f-7b54fb50754e Ancestors: HelpSystem-Core-pre.108
Added # prefix to method names in help topics so that we can browse them directly with a single keystroke
=============== Diff against HelpSystem-Core-pre.108 ===============
Item was changed: ----- Method: ClassAPIHelpBuilder>>buildMethodTopicsOn:for: (in category 'private building') ----- buildMethodTopicsOn: topic for: aClass topic contents: (String streamContents: [ :stream | aClass selectors sort do: [ :selector | stream nextPutAll: aClass name; + nextPutAll: '>>#'; - nextPutAll: '>>'; nextPutAll: selector asString; cr; nextPutAll: ( (aClass commentsAt: selector) at: 1 ifAbsent: [ 'Method has no comment.' ]); cr; cr ] ])!
Item was changed: ----- Method: MethodListHelpTopic>>contents (in category 'accessing') ----- contents
^ (String streamContents: [ :stream | self theClass selectors sort do: [ :selector | stream nextPutAll: self theClass name; + nextPutAll: '>>#'; - nextPutAll: '>>'; nextPutAll: selector asString; cr; nextPutAll: ( (self theClass commentsAt: selector) at: 1 ifAbsent: [ '-' ]); cr; cr ] ])!
Could you please elaborate?
Which key stroke?
I understand that I have to select the message selector first.
--Hannes
On Fri, 8 Mar 2019 09:22:35 0000, commits@source.squeak.org commits@source.squeak.org wrote:
A new version of HelpSystem-Core was added to project The Inbox: http://source.squeak.org/inbox/HelpSystem-Core-kks.109.mcz
==================== Summary ====================
Name: HelpSystem-Core-kks.109 Author: kks Time: 8 March 2019, 2:52:33.288436 pm UUID: a50742bc-0442-4e86-8c1f-7b54fb50754e Ancestors: HelpSystem-Core-pre.108
Added # prefix to method names in help topics so that we can browse them directly with a single keystroke
=============== Diff against HelpSystem-Core-pre.108 ===============
Item was changed: ----- Method: ClassAPIHelpBuilder>>buildMethodTopicsOn:for: (in category 'private building') ----- buildMethodTopicsOn: topic for: aClass
topic contents: (String streamContents: [ :stream | aClass selectors sort do: [ :selector | stream nextPutAll: aClass name;
nextPutAll: '>>#';
nextPutAll: '>>'; nextPutAll: selector asString; cr; nextPutAll: ( (aClass commentsAt: selector) at: 1 ifAbsent: [ 'Method has no comment.' ]); cr; cr ] ])!
Item was changed:
----- Method: MethodListHelpTopic>>contents (in category 'accessing')
contents
^ (String streamContents: [ :stream | self theClass selectors sort do: [ :selector | stream nextPutAll: self theClass name;
nextPutAll: '>>#';
nextPutAll: '>>'; nextPutAll: selector asString; cr; nextPutAll: ( (self theClass commentsAt: selector) at: 1 ifAbsent: [ '-' ]); cr; cr ] ])!
On 08/03/19 10:04 PM, H. Hirzel wrote:
Could you please elaborate?
Which key stroke?
Inspect (ctrl-i). It opens an inspector on the compiled method. From there I can browse the source code with:
Browser newOnClass: self class selector: self selector
It would be nice if browseIt also handles method references.
I understand that I have to select the message selector first.
But selecting just the method loses the class and shows a list of implementors across all classes :-).
Regards .. Subbu
squeak-dev@lists.squeakfoundation.org