Re: [Pharo-users] Search and replace source code

2015-03-20 Thread Laura Risani
Thank you all, your answers allowed me to solve my problem. Also very interesting tools! On Thu, Mar 19, 2015 at 3:19 PM, Thierry Goubier wrote: > Le 19/03/2015 19:05, Sean P. DeNigris a écrit : > >> Thierry Goubier wrote >> >>> you can use the parse tree rewriter of the Refactoring Browser set

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Thierry Goubier
Le 19/03/2015 19:05, Sean P. DeNigris a écrit : Thierry Goubier wrote you can use the parse tree rewriter of the Refactoring Browser set Didn't someone demo a cool rewrite tool GUI recently? I don't remember where exactly... Yes! Mark Rizun rewrite tool (http://myfuncoding.blogspot.fr/). Rec

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Sean P. DeNigris
Thierry Goubier wrote > you can use the parse tree rewriter of the Refactoring Browser set Didn't someone demo a cool rewrite tool GUI recently? I don't remember where exactly... - Cheers, Sean -- View this message in context: http://forum.world.st/Search-and-replace-source-code-tp4813295p

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Thierry Goubier
Hi Laura, you can use the parse tree rewriter of the Refactoring Browser set. Like that, you can have a degree of control about what you do replace and on what. For example, I'd try something like: | rewrite | rewrite := RBParseTreeRewriter new replace: 'expression1' with: 'e

Re: [Pharo-users] Search and replace source code

2015-03-19 Thread Aliaksei Syrel
Hi Laura, you can use this method: replaceAll: aString with: anotherString > "replaces aString in source code in the whole image in all methods with > anotherString" > ((self systemNavigation allMethodsWithSourceString: aString matchCase: > false) collect: #compiledMethod) > do: [ :each | each me

[Pharo-users] Search and replace source code

2015-03-19 Thread Laura Risani
Hi all, How do you replace all 'expression1' in source code by 'expression2'? I can find them with Finder but don't see any easy way to replace them. My problem is i want to change parameter names in many methods. Best, Laura