The Inbox: HelpSystem-Core-kks.109.mcz

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

The Inbox: HelpSystem-Core-kks.109.mcz

commits-2
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 ] ])!


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: HelpSystem-Core-kks.109.mcz

Hannes Hirzel
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, [hidden email]
<[hidden email]> 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 ] ])!
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: HelpSystem-Core-kks.109.mcz

K K Subbu
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