Author: lluis
Date: 2007-03-29 10:33:52 -0500 (Thu, 29 Mar 2007)
New Revision: 75149

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs
Log:
* MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs: Track api
  changes.

Modified: trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-03-29 
15:29:28 UTC (rev 75148)
+++ trunk/monodevelop/Core/src/MonoDevelop.Ide/ChangeLog        2007-03-29 
15:33:52 UTC (rev 75149)
@@ -1,3 +1,8 @@
+2007-03-29  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs: Track api
+         changes.
+
 2007-03-22  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Ide.Commands/RefactoryCommands.cs (Update): We always 

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs
      2007-03-29 15:29:28 UTC (rev 75148)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Ide/MonoDevelop.Ide.Templates/CombineEntryDescriptor.cs
      2007-03-29 15:33:52 UTC (rev 75149)
@@ -78,11 +78,11 @@
                        
                        entry.Name = newProjectName;
                        
-                       IFileFormat fileFormat = 
Services.ProjectService.FileFormats.GetFileFormatForObject (entry);
-                       if (fileFormat == null)
+                       IFileFormat[] fileFormats = 
Services.ProjectService.FileFormats.GetFileFormatsForObject (entry);
+                       if (fileFormats.Length == 0)
                                throw new InvalidOperationException ("Can't 
find a file format for the type: " + type);
 
-                       string fileName = fileFormat.GetValidFormatName 
(Path.Combine (projectCreateInformation.ProjectBasePath, newProjectName));
+                       string fileName = fileFormats[0].GetValidFormatName 
(Path.Combine (projectCreateInformation.ProjectBasePath, newProjectName));
                        
                        using (IProgressMonitor monitor = new 
NullProgressMonitor ()) {
                                if (File.Exists (fileName)) {

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

Reply via email to