You may use the Refactoring Browser from OmniBrowser to do that.

1) Open a scoped browser, i.e. select a method, contextual menu -> Refactoring scope -> Selection (you may filter by multiple methods, categories, classes or packages depending your current selection in OB) 2) In the new browser window, select method, contextual menu -> Refactor -> Source Regex...

For example given the method:

test1
        | var1 var2 var3 var4 |
        
        var3 := #symbol1.
        var4 := 'cadena1'.
        var1 := 'my first testString'.
        var2 := 'my second testString'.
        ^ var1 foobar , var2 foobar

a regex refactoring replacing #symbol1 with 'symbol1' and 'testString' with 'myString' could be:

ORSourceRegexRefactoring new
        "Example 1: Replace symbols with strings"
        replace: '#(\w+)' with: '''$1''' ignoreCase: false;
        "Example 2: Replace occurrences of a string with another string"
        replace: '#*testString' with: 'myString';
        yourself

3) Open menu on the refactoring source code, click Accept (DO NOT use the keyboard commands) 4) A new browser window will let you accept, filter, or cancel the refactorings.

If you want to modify message patterns/nodes, use the Refactor -> Rewrite code... templates. Take a look at: http://st-www.cs.illinois.edu/users/brant/Refactory/Rewrite.html to learn about the rewrite rules.
Hope it helps.
Cheers,

Hernán


On 28/09/2012 4:51, Sabine Knöfel wrote:
Hi,

double clicking on one word in the system browser selects this word in one
color and all other appearances of this wort in another color. This is nice.
Is there a possibility to change ALL the occurences of this word in one
action? I did noch find this feature yet.

I do not mean the search and replace dialog - to many clicks while
developing.

Greetings Sabine



--
View this message in context: 
http://forum.world.st/change-n-same-words-in-browser-with-one-action-tp4649372.html
Sent from the Seaside General mailing list archive at Nabble.com.
_______________________________________________
seaside mailing list
seas...@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside



Reply via email to