> This sounds like it would be very useful. Renaming things is one of the most
> common kinds of refactorings, and if it can be done automatically without 
> users
> having to worry about it altering surrounding code unnecessarily, that would 
> be
> wonderful.

The nice thing of the Smalltalk Refactoring Engine is that it all
builds uniformly on top of the rewrite engine. Unfortunately this
makes it very hard to preserve the formatting.

> Out of curiosity, is there some kind of global, RegExp-based search and 
> replace
> functionality in the system that can be used instead?

I've built a set of code transformations on top of the refactoring
engine (so that undo/redo works) that use regular expressions (and
thus preserve the formatting). These tools allows you to transform
category names, class names, protocol names, selector names and source
code using regular expressions. The tools are implemented in OB-Regex
and are directly integrated into OmniBrowser. You get the tools when
you build an image from this load script for example:
<http://code.google.com/p/pharo/wiki/ImageBuildScripts>.

Cheers,
Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to