From: Sven R. <rei...@ma...> - 2002-12-15 21:54:19
|
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... |