But I imagine that you can find these just looking at the users of the classes. 
The strength of RBPaserTreeSearcher is when you want to get a specific method 
invocation and rewrite it.
Stefan why Shift+N is not enough for you?

Stef

> Depends on how you use your classes.
> 
> If you have have a finite set of constructor methods you can use
> 'Refactor > Search code...' with something like this:
> 
> RBParseTreeSearcher new
>       matches: 'PluggableButtonMorph on: `@.arg1' do: [ :node :answer | node 
> ];
>       matches: 'PluggableButtonMorph on: `@.arg1 getState: `@.arg2 action:
> `@.arg3' do: [ :node :answer | node ];
>       yourself
> 
> Of course, if you put all your constructor methods into a distinct
> protocol, you could automate the creation of the searcher.
> 
> Lukas
> 
> On 15 January 2012 17:28, Stefan Marr <smallt...@stefan-marr.de> wrote:
>> Hi:
>> 
>> When refactoring code, I frequently try to find all places where a class is 
>> instantiated.
>> Is there anything in the image which would work a bit more precise than a 
>> search for the class name in the finder?
>> 
>> Thanks
>> Stefan
>> 
>> 
>> --
>> Stefan Marr
>> Software Languages Lab
>> Vrije Universiteit Brussel
>> Pleinlaan 2 / B-1050 Brussels / Belgium
>> http://soft.vub.ac.be/~smarr
>> Phone: +32 2 629 2974
>> Fax:   +32 2 629 3525
>> 
>> 
> 
> 
> 
> -- 
> Lukas Renggli
> www.lukas-renggli.ch
> 


Reply via email to