Renaming class references and variables
Posted on 2006-05-31
I have a list of class references(150) and variables(120) which I need to change. Can anyone tell me a way of doing this without refactoring 270 times? (I need this to be a repeatable process for testing and converting different source that uses same references and variables).
An additional problem is that to refactor a class reference is not allowed in eclipse so from what I can see I will have to replace the jar of classes and get hold of the source files (time lag involved) create a new package, import the classes and refactor the classes (which eclipse does allow) which in turn would rename the class references. If there is an alternative way please let me know.
I have explored an option of using the latest eclipse stable build (3.2) which allows scripting of refactor operations previously performed. That way I could painfully do 270 refactors but then run as one script for future testing and source that needs converting.
I'm open to all options. so don't feel it has to all take place using eclipse.