Search/replace

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

Search/replace

Dezider Mesko
Hi,
how I can do search/replace through multiple packages/classes/messages?

Thank you!

d.

Reply | Threaded
Open this post in threaded view
|

Re: Search/replace

Paul DeBruicker
On 07/31/2012 06:45 AM, Dezider Mesko wrote:
> Hi,
> how I can do search/replace through multiple packages/classes/messages?
>
> Thank you!
>
> d.
>


Which version of Pharo and which Browser are you using?

You'll need some refactoring tools which means either
OmniBrowser+Refactoring or Nautilus (I think it has them) and which one
you can use is dependent upon the version of Pharo you want to use.




Reply | Threaded
Open this post in threaded view
|

Re: Search/replace

Dezider Mesko
Hi, I'm using default Pharo 1.4 image. I'll try explore nautils/omni. Thank you

d.

On Tue, Jul 31, 2012 at 5:11 PM, Paul DeBruicker <[hidden email]> wrote:

> On 07/31/2012 06:45 AM, Dezider Mesko wrote:
>>
>> Hi,
>> how I can do search/replace through multiple packages/classes/messages?
>>
>> Thank you!
>>
>> d.
>>
>
>
> Which version of Pharo and which Browser are you using?
>
> You'll need some refactoring tools which means either
> OmniBrowser+Refactoring or Nautilus (I think it has them) and which one you
> can use is dependent upon the version of Pharo you want to use.
>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Search/replace

hernanmd
If you search Strings or text inside Strings, write the string somewhere, select it or put the cursor at the end and press Ctrl+Shift+E. If you want to rename a method with its corresponding sends, right click the selector, Refactor method, Rename...  in case you have several implementors, you may remove those you want to exclude pressing Alt+X (or cmd+x).

To do more advanced rewrites you should learn the tree pattern matching meta-characters, and the refactoring browser API to execute them. Fortunately there are some templates in OmniBrowser, right click the category, Refactor and Rewrite code menu items or look for RBParseTreeRewriter references. If you want to narrow your search in multiple classes/methods in a package, right click the category and select Browse Package from the menu.

Hernán

2012/8/1 Dezider Mesko <[hidden email]>
Hi, I'm using default Pharo 1.4 image. I'll try explore nautils/omni. Thank you

d.

On Tue, Jul 31, 2012 at 5:11 PM, Paul DeBruicker <[hidden email]> wrote:
> On 07/31/2012 06:45 AM, Dezider Mesko wrote:
>>
>> Hi,
>> how I can do search/replace through multiple packages/classes/messages?
>>
>> Thank you!
>>
>> d.
>>
>
>
> Which version of Pharo and which Browser are you using?
>
> You'll need some refactoring tools which means either
> OmniBrowser+Refactoring or Nautilus (I think it has them) and which one you
> can use is dependent upon the version of Pharo you want to use.
>
>
>




--
Hernán Morales
Institute of Veterinary Genetics.
National Scientific and Technical Research Council (CONICET).
La Plata (1900), Buenos Aires, Argentina.
Telephone: +54 (0221) 421-1799.
Internal: 422
Fax: 425-7980 or 421-1799.