Author: lluis
Date: 2007-04-26 10:53:06 -0400 (Thu, 26 Apr 2007)
New Revision: 76326

Modified:
   trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog
   trunk/monodevelop/Extras/MonoDevelop.Autotools/Handler.cs
   trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
Log:
* Handler.cs, SolutionDeployer.cs: Fixed CanBuild method. Any combine
  entry for which there is a IMakefileHandler can be deployed.

Modified: trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog    2007-04-26 
14:45:31 UTC (rev 76325)
+++ trunk/monodevelop/Extras/MonoDevelop.Autotools/ChangeLog    2007-04-26 
14:53:06 UTC (rev 76326)
@@ -1,5 +1,10 @@
 2007-04-26  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
+       * Handler.cs, SolutionDeployer.cs: Fixed CanBuild method. Any combine
+         entry for which there is a IMakefileHandler can be deployed.
+
+2007-04-26  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
        * MonoDevelop.Autotools.addin.xml, MonoDevelop.Autotools.mdp,
          MakefileIntegrationFeatureWidget.cs, Handler.cs,
          MakefileIntegrationFeature.cs,

Modified: trunk/monodevelop/Extras/MonoDevelop.Autotools/Handler.cs
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Autotools/Handler.cs   2007-04-26 
14:45:31 UTC (rev 76325)
+++ trunk/monodevelop/Extras/MonoDevelop.Autotools/Handler.cs   2007-04-26 
14:53:06 UTC (rev 76326)
@@ -54,14 +54,8 @@
 
                public override bool CanBuild (CombineEntry entry)
                {
-                       Combine combine = entry as Combine;
-                       if (combine == null)
-                               combine = entry.ParentCombine;
-                       if (combine == null)
-                               return false;
-                       
                        SolutionDeployer deployer = new SolutionDeployer ();
-                       return deployer.CanDeploy ( combine );
+                       return deployer.CanDeploy ( entry );
                }
                
                public override void InitializeSettings (CombineEntry entry)

Modified: trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs
===================================================================
--- trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs  
2007-04-26 14:45:31 UTC (rev 76325)
+++ trunk/monodevelop/Extras/MonoDevelop.Autotools/SolutionDeployer.cs  
2007-04-26 14:53:06 UTC (rev 76326)
@@ -53,10 +53,10 @@
                        return false;
                }
                
-               public bool CanDeploy ( Combine combine )
+               public bool CanDeploy (CombineEntry entry)
                {
-                       IMakefileHandler handler = 
AutotoolsContext.GetMakefileHandler ( combine );
-                       if ( handler == null || !handler.CanDeploy (combine) ) 
return false;
+                       IMakefileHandler handler = 
AutotoolsContext.GetMakefileHandler (entry);
+                       if ( handler == null || !handler.CanDeploy (entry) ) 
return false;
                        return true;
                }
                

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

Reply via email to