It would be nice to see refactored code before the
refactoring will be done.
E.g. for InlineTemp: Show the lines of code that
need to be changed and show them after the inlining ...
This is fairly easy to implement, as we have the list of all
changes made to the text.
Example of implementation (using HTML output):
- to generate an HTML version of the modification, apply the
modification on a new HTMLChangeTrackingDocument (new
subclass of TextDocument)
- take the original source and put it in a <PRE> tag.
- in replaceTextRange(), insert a HTML sequence with the
replaced striked out and the new text in bold.
The most difficult part is probably the GUI. Notes that you
also need to introduce some higher level interface change, as
at the current time the modification associated to a
refactoring can only be applied once.
voila,
Baptiste.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Logged In: YES
user_id=196852
This is fairly easy to implement, as we have the list of all
changes made to the text.
Example of implementation (using HTML output):
- to generate an HTML version of the modification, apply the
modification on a new HTMLChangeTrackingDocument (new
subclass of TextDocument)
- take the original source and put it in a <PRE> tag.
- in replaceTextRange(), insert a HTML sequence with the
replaced striked out and the new text in bold.
The most difficult part is probably the GUI. Notes that you
also need to introduce some higher level interface change, as
at the current time the modification associated to a
refactoring can only be applied once.
voila,
Baptiste.