From: Baptiste L. <gai...@fr...> - 2002-12-15 20:32:26
|
Well, I more or less expected something like this. Concerning the undo, while it is not yet an issue for VC6, this will become one when we will move to refactoring that change more than one file (though I understand that VC7 can handle that). I also expect this to be an issue for some other IDE. So, there will probably be a common solution. One question though. How are complex user interactions handled ? For instance, the RenameClass refactoring while provide the user with a list of found occurrences, tagging each occurrences with some sort of probability tag reflecting how confident the parser is that it is a reference to the same class (we now we'll never be perfect). The user would be able to validate which occurrences should be replaced. How would this be handled in emacs ? Creating a buffer with the list of occurrences (like the 'window manager' of emacs) ? Baptiste. ----- Original Message ----- From: "Sven Reichard" <rei...@ma...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Saturday, December 14, 2002 6:39 PM Subject: Re: [Cpptool-develop] XEmacs integration > For emacs, I came up with the following solution: > > - Create a text-based application which understands an easy to parse set > of commands, and which allows to interactively refactor source files on > disk. > - Create a mode for emacs which communicates with that application. > > Both parts shouldn't be too complicated to implement. The application > (let's call it "refactor") would still be platform independent, and hence > perhaps generally useful. Since it operates directly on the files it will > have to implement its own undo mechanism. > > I'll think about the interface for refactor, and I'll put something on the > Wiki. Basically, a run would look as follows: > > > addAll src/rfta > added 25 files > > apply RenameTemp ToolsBox.cpp 245 15 newVariableName > replaced 14 occurrences > > saveAll > saved 1 file(s) > > quit > > where the variable occurs in line 245, column 15. > > Sven. > > -- > Sven Reichard > Dept. of Math. Sci. > University of Delaware > rei...@ma... |