Author: ankit
Date: 2008-01-23 15:03:46 -0500 (Wed, 23 Jan 2008)
New Revision: 93702

Modified:
   branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/ChangeLog
   
branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/MSBuildFileFormat.cs
Log:
* MSBuildFileFormat.cs: Simplification, AddExtensionNodeHandler calls
the handler for all existing extensions. Thanks to lluis.


Modified: branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/ChangeLog
===================================================================
--- branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/ChangeLog       
2008-01-23 20:02:32 UTC (rev 93701)
+++ branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/ChangeLog       
2008-01-23 20:03:46 UTC (rev 93702)
@@ -1,5 +1,10 @@
 2008-01-24  Ankit Jain  <[EMAIL PROTECTED]>
 
+       * MSBuildFileFormat.cs: Simplification, AddExtensionNodeHandler calls
+       the handler for all existing extensions. Thanks to lluis.
+
+2008-01-24  Ankit Jain  <[EMAIL PROTECTED]>
+
        * MSBuildFileFormat.cs: Read the full list of extensions only at init
        time and handle ExtensionChange.Add correctly.
 

Modified: 
branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/MSBuildFileFormat.cs
===================================================================
--- 
branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/MSBuildFileFormat.cs
    2008-01-23 20:02:32 UTC (rev 93701)
+++ 
branches/monodevelop/main/1.0/src/addins/prj2make-sharp-lib/MSBuildFileFormat.cs
    2008-01-23 20:03:46 UTC (rev 93702)
@@ -886,12 +886,9 @@
                        extensions = new List<MSBuildProjectExtension> ();
                        languageTypeGuids = new Dictionary<string,string> ();
 
-                       foreach (MSBuildProjectExtension extn in 
AddinManager.GetExtensionObjects (
-                                               
"/MonoDevelop/Prj2Make/MSBuildProjectExtension", typeof 
(MSBuildProjectExtension)))
-                               AddExtension (extn);
-
-                       extensions.Add (new DefaultMSBuildProjectExtension ());
+                       // AddinManager.AddExtensionNodeHandler calls the 
handler for all the existing extensions
                        AddinManager.AddExtensionNodeHandler 
("/MonoDevelop/Prj2Make/MSBuildProjectExtension", OnProjectExtensionsChanged);
+                       extensions.Add (new DefaultMSBuildProjectExtension ());
                }
 
                static void OnProjectExtensionsChanged (object s, 
ExtensionNodeEventArgs args)

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

Reply via email to