Author: lluis
Date: 2007-12-14 11:48:21 -0500 (Fri, 14 Dec 2007)
New Revision: 91297
Modified:
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs
Log:
* MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs: Don't update bindings
if the file has syntax errors. May fix bug #347590.
Modified: trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
2007-12-14 16:15:49 UTC (rev 91296)
+++ trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/ChangeLog
2007-12-14 16:48:21 UTC (rev 91297)
@@ -1,3 +1,8 @@
+2007-12-14 Lluis Sanchez Gual <[EMAIL PROTECTED]>
+
+ * MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs: Don't update bindings
if the
+ file has syntax errors. May fix bug #347590.
+
2007-12-12 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.GtkCore.addin.xml: Bump add-in versions.
Modified:
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs
===================================================================
---
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs
2007-12-14 16:15:49 UTC (rev 91296)
+++
trunk/monodevelop/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/CodeBinder.cs
2007-12-14 16:48:21 UTC (rev 91297)
@@ -89,14 +89,16 @@
{
if (targetObject == null)
return;
- IdeApp.ProjectOperations.ParserDatabase.UpdateFile
(project, fileName, null);
+ IParseInformation pi =
IdeApp.ProjectOperations.ParserDatabase.UpdateFile (project, fileName, null);
classFile = fileName;
- IClass cls = GetClass ();
- UpdateBindings (targetObject, cls);
+ if (!pi.MostRecentCompilationUnit.ErrorsDuringCompile) {
+ IClass cls = GetClass ();
+ UpdateBindings (targetObject, cls);
- if (cls != null)
- targetObject.GeneratePublic = cls.IsPublic;
+ if (cls != null)
+ targetObject.GeneratePublic =
cls.IsPublic;
+ }
}
void UpdateBindings (Stetic.Component obj, IClass cls)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches