Spotter: Browse Impementors?

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

Spotter: Browse Impementors?

Sean P. DeNigris
Administrator
Maybe I'm missing something obvious, but if I zero in on a message name in spotter, can I open a browser on all implementors, or only browse one specific method?
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Spotter: Browse Impementors?

Juraj Kubelka-5
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: Spotter: Browse Impementors?

Sean P. DeNigris
Administrator
Juraj Kubelka wrote
Do you need to open it in Implementors/Senders Browser?
Yes. I was fixing mouse wheel user code to handle horizontal wheel events. The Morphic hook is #mouseWheel:, so I wanted a browser on all implementors of #mouseWheel: so that I could view each one and update it if necessary.
Cheers,
Sean
Reply | Threaded
Open this post in threaded view
|

Re: Spotter: Browse Impementors?

Tudor Girba-2
Hi,

As Juraj said, you can Cmd+Shift+ArrowRight to dive in the category and using the preview you can browse the code. If you want the MessageBrowser, there is no way to get it by default.

Laura also asked for this feature before, so I listed below a crude code to add a processor that finds selectors instead of implementors. Just install this method and then start spotting. Let us know if this is better:

GTSpotter>>spotterSelectorsFor: aStep
    <spotterOrder: 0>
| processor |
processor := aStep listProcessor.
processor
title: 'Selectors';
filter: [ :originalQuery :stream |
|query selectors |
query := originalQuery trimBoth asLowercase.
query isEmpty ifFalse: [
selectors := Set new.
SystemNavigation default allBehaviorsDo: [:class | 
class selectorsDo:[ :selector | 
((selectors includes: selector) not and: [ selector beginsWith: query ]) ifTrue: [
selectors add: selector.
selectors size > 5 ifFalse: [ 
stream addObject: selector inProcessor: processor ]]]].
selectors ] ];
actLogic: [ :each | self systemNavigation browseAllImplementorsOf: each ]


Cheers,
Doru



On Tue, Feb 10, 2015 at 9:24 PM, Sean P. DeNigris <[hidden email]> wrote:
Juraj Kubelka wrote
> Do you need to open it in Implementors/Senders Browser?

Yes. I was fixing mouse wheel user code to handle horizontal wheel events.
The Morphic hook is #mouseWheel:, so I wanted a browser on all implementors
of #mouseWheel: so that I could view each one and update it if necessary.



-----
Cheers,
Sean
--
View this message in context: http://forum.world.st/Spotter-Browse-Impementors-tp4805013p4805028.html
Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.




--

"Every thing has its own flow"