Author: lluis
Date: 2006-07-12 13:41:28 -0400 (Wed, 12 Jul 2006)
New Revision: 62521

Modified:
   trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog
   
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/LocalVariable.cs
   
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs
Log:
2006-07-12 Lluis Sanchez Gual  <[EMAIL PROTECTED]>

        * MonoDevelop.Projects/Project.cs: In CheckNeedsBuild, always
          check for modified files. We can't rely on the watcher for now,
          since it's not scanning project subdirectories.
        * MonoDevelop.Projects.Parser/LocalVariable.cs: Added Region property.



Modified: trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog   2006-07-12 
17:41:06 UTC (rev 62520)
+++ trunk/monodevelop/Core/src/MonoDevelop.Projects/ChangeLog   2006-07-12 
17:41:28 UTC (rev 62521)
@@ -1,3 +1,10 @@
+2006-07-12 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Projects/Project.cs: In CheckNeedsBuild, always
+         check for modified files. We can't rely on the watcher for now,
+         since it's not scanning project subdirectories.
+       * MonoDevelop.Projects.Parser/LocalVariable.cs: Added Region property.
+
 2006-07-11 Lluis Sanchez Gual  <[EMAIL PROTECTED]>
 
        * MonoDevelop.Projects/ProjectCreateInformation.cs: The bin directory

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs 
    2006-07-12 17:41:06 UTC (rev 62520)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects/Project.cs 
    2006-07-12 17:41:28 UTC (rev 62521)
@@ -53,7 +53,6 @@
                protected DeployInformation deployInformation = new 
DeployInformation();
                
                bool isDirty = false;
-               bool filesChecked;
                
                private FileSystemWatcher projectFileWatcher;
                
@@ -522,19 +521,15 @@
                                return;
                        }
                        
-                       if (!filesChecked) {
-                               foreach (ProjectFile file in ProjectFiles) {
-                                       if (file.BuildAction == 
BuildAction.Exclude) continue;
-                                       FileInfo finfo = new FileInfo 
(file.FilePath);
-                                       if (finfo.Exists && finfo.LastWriteTime 
> tim) {
-                                               isDirty = true;
-                                               return;
-                                       }
+                       foreach (ProjectFile file in ProjectFiles) {
+                               if (file.BuildAction == BuildAction.Exclude) 
continue;
+                               FileInfo finfo = new FileInfo (file.FilePath);
+                               if (finfo.Exists && finfo.LastWriteTime > tim) {
+                                       isDirty = true;
+                                       return;
                                }
-                               
-                               filesChecked = true;
                        }
-
+                       
                        foreach (ProjectReference pref in ProjectReferences) {
                                if (pref.ReferenceType == ReferenceType.Project 
&& RootCombine != null) {
                                        Project rp = RootCombine.FindProject 
(pref.Reference);
@@ -544,7 +539,6 @@
                                        }
                                }
                        }
-                       
                }
                
                protected virtual DateTime GetLastBuildTime ()

Modified: 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/LocalVariable.cs
===================================================================
--- 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/LocalVariable.cs
        2006-07-12 17:41:06 UTC (rev 62520)
+++ 
trunk/monodevelop/Core/src/MonoDevelop.Projects/MonoDevelop.Projects.Parser/LocalVariable.cs
        2006-07-12 17:41:28 UTC (rev 62521)
@@ -37,12 +37,14 @@
                string name;
                string documentation;
                IReturnType returnType;
+               IRegion region;
                
-               public LocalVariable (string name, IReturnType type, string 
documentation)
+               public LocalVariable (string name, IReturnType type, string 
documentation, IRegion region)
                {
                        this.name = name;
                        this.documentation = documentation;
                        this.returnType = type;
+                       this.region = region;
                }
                
                public string Name {
@@ -52,6 +54,10 @@
                public IReturnType ReturnType {
                        get { return returnType; }
                }
+               
+               public IRegion Region {
+                       get { return region; }
+               }
 
                public string Documentation {
                        get { return documentation; }

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

Reply via email to