From: Baptiste L. <gai...@fr...> - 2002-12-16 23:01:26
|
Hmm, if I understood well, this is a basic search and replace. That would mean that at no point the user would have a overview of all the occurrences, right ? I think this could be useful as it allow the user to have an idea of how much work will be needed, or to estimate the overall confidence rfta as in the refactoring, or to do multiple exclusion at once. Baptiste. ----- Original Message ----- From: "Sven Reichard" <rei...@ma...> To: "CppTool Mailing List" <Cpp...@li...> Sent: Sunday, December 15, 2002 10:54 PM Subject: Re: [Cpptool-develop] XEmacs integration > On Sun, 15 Dec 2002, Baptiste Lepilleur wrote: > > > 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) ? > > > > I would rather think of something along the line of emacs' "query > replace". Thus, we go through the list of possible occurrences, display > the corresponding file with the expression in question highlighted, and > ask the user something like > "Replace class name (rfta confidence: 80%)?" > Optionally, we can skip this step for occurrences where our confidence is > 100% (might happen every once in a while). > The user would have the possibility to replace this occurrence, skip it, > or (maybe) abort the whole refactoring. In emacs, this can be done in the > minibuffer. > > Sven. > > -- > Sven Reichard > Dept. of Math. Sci. > University of Delaware > rei...@ma... > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Cpptool-develop mailing list > Cpp...@li... > https://lists.sourceforge.net/lists/listinfo/cpptool-develop > > |