[MonoDevelop] Rename project patch

Lluis Sanchez lluis at ximian.com
Mon Jun 6 18:59:22 EDT 2005


El dl 06 de 06 del 2005 a les 22:57 +0200, en/na Jacob Ilsø Christensen
va escriure:
> Hi.
> 
> The attached patch makes sure that references to a project are updated
> when the project is renamed.
> 
> Any comments?

If you change Project.RenameReference so it removes the old reference
and adds the a new one (instead of renaming), you can avoid adding the
ReferenceRenamedInProject event and all changes in Combine and the
ProjectPad (since they already deal with the add and remove events).

RenameReference should be internal.

Please, don't use a whole "switch(refInfo.ReferenceType)" with empty
cases, when the same can be done with a single "if".

Thanks,
Lluis.

> 
> /Jacob
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list



More information about the Monodevelop-list mailing list