[MonoDevelop] [Patch] Refactoring Move class to file featute

Lluis Sanchez Gual lluis at novell.com
Tue Mar 3 14:01:20 EST 2009


El dg 01 de 03 de 2009 a les 15:24 -0800, en/na Vadim Chekan va
escriure:
> Hi all,
> 
> I've implemented "Move class to a file" feature from ToDo list (attached).
> It is still has some TODO in the code to be implemented but is already
> usable. So if it will be  committed I'll keep working on it.
> Please let me know if something needs to be improved.
> 

Hi!

Thanks for the patch. Some comments:

      * You should take into account compound types, that is, types
        composed by several parts spread in different files. Compound
        ITypes are instances of CompoundType.
      * To be able to build the new file, "using" statements should be
        moved along the class.
      * The file name should be selected by the user. MD can suggest a
        file name using the class name, but the user has to choose.
      * Maybe it would be easier to have a single MoveToFile operation
        in IRefactorer.

Lluis.




More information about the Monodevelop-list mailing list