Author: fejj
Date: 2007-05-25 15:09:47 -0400 (Fri, 25 May 2007)
New Revision: 77968

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs
Log:
2007-05-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>

        * MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs: Moved the
        logic that constructed the CodeDom property object into the
        IRefactorer implementation instead, allowing us to take advantage
        of the new code I wrote to generate a CodeTypeReference given an
        IReturnType.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-05-25 
19:08:02 UTC (rev 77967)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-05-25 
19:09:47 UTC (rev 77968)
@@ -1,8 +1,17 @@
 2007-05-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
-       * MonoDevelop.Ide.Commands/RefactoryCommands.cs (ImplementInterface):
-       Moved the bulk of the logic to CodeRefactorer.
+       * MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs: Moved the
+       logic that constructed the CodeDom property object into the
+       IRefactorer implementation instead, allowing us to take advantage
+       of the new code I wrote to generate a CodeTypeReference given an
+       IReturnType.
 
+2007-05-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Ide.Commands/RefactoryCommands.cs
+       (ImplementInterface): Moved the bulk of the logic to
+       CodeRefactorer.
+
 2007-05-25  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Ide.Templates/FileTemplate.cs,

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs
    2007-05-25 19:08:02 UTC (rev 77967)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Dialogs/EncapsulateFieldDialog.cs
    2007-05-25 19:09:47 UTC (rev 77968)
@@ -135,19 +135,9 @@
                        CodeRefactorer refactorer = 
IdeApp.ProjectOperations.CodeRefactorer;
                        IProgressMonitor monitor = 
IdeApp.Workbench.ProgressMonitors.GetBackgroundProgressMonitor (this.Title, 
null);
                        string name = entryPropertyName.Text;
-                       CodeMemberProperty member;
                        
-                       member = new CodeMemberProperty ();
-                       member.Name = name;
+                       refactorer.EncapsulateField (monitor, 
field.DeclaringType, field, name, radioUpdateAll.Active);
                        
-                       member.Type = new CodeTypeReference 
(field.ReturnType.Name);
-                       member.Attributes = MemberAttributes.Public;
-                       
-                       member.HasGet = true;
-                       member.HasSet = true;
-                       
-                       refactorer.EncapsulateField (monitor, 
field.DeclaringType, field, member, radioUpdateAll.Active);
-                       
                        ((Widget) this).Destroy ();
                }
        }

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to