diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-19 13:34:27 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-19 13:34:27 +0300 |
commit | cd1e4a39995e16b88507e030df59d32e129a4459 (patch) | |
tree | 2754120518a87387907e4ed9f7885d222c545815 | |
parent | 98c51efa837346b07b2e7e2357c211ce4dea7f1d (diff) |
Track api changes.
-rw-r--r-- | extras/ValaBinding/Project/ValaProject.cs | 35 |
1 files changed, 20 insertions, 15 deletions
diff --git a/extras/ValaBinding/Project/ValaProject.cs b/extras/ValaBinding/Project/ValaProject.cs index 88faddb559..0ca84697e4 100644 --- a/extras/ValaBinding/Project/ValaProject.cs +++ b/extras/ValaBinding/Project/ValaProject.cs @@ -398,30 +398,35 @@ namespace MonoDevelop.ValaBinding } } - protected override void OnFileAddedToProject (ProjectFileEventArgs e) + protected override void OnFileAddedToProject (ProjectFileEventArgs args) { - base.OnFileAddedToProject (e); + base.OnFileAddedToProject (args); - if (!IsCompileable (e.ProjectFile.Name) && - e.ProjectFile.BuildAction == BuildAction.Compile) { - e.ProjectFile.BuildAction = BuildAction.None; + foreach (ProjectFileEventInfo e in args) { + if (!IsCompileable (e.ProjectFile.Name) && + e.ProjectFile.BuildAction == BuildAction.Compile) { + e.ProjectFile.BuildAction = BuildAction.None; + } + + if (e.ProjectFile.BuildAction == BuildAction.Compile) + ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath); } - - if (e.ProjectFile.BuildAction == BuildAction.Compile) - ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath); } - protected override void OnFileChangedInProject (ProjectFileEventArgs e) + protected override void OnFileChangedInProject (ProjectFileEventArgs args) { - base.OnFileChangedInProject (e); -// ProjectInformationManager.Instance.Get (this).Reparse (); - ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath); + base.OnFileChangedInProject (args); + foreach (ProjectFileEventInfo e in args) { + // ProjectInformationManager.Instance.Get (this).Reparse (); + ProjectInformationManager.Instance.Get (this).AddFile (e.ProjectFile.FilePath); + } } - protected override void OnFileRemovedFromProject (ProjectFileEventArgs e) + protected override void OnFileRemovedFromProject (ProjectFileEventArgs args) { - base.OnFileRemovedFromProject(e); - ProjectInformationManager.Instance.Get (this).RemoveFile (e.ProjectFile.FilePath); + base.OnFileRemovedFromProject(args); + foreach (ProjectFileEventInfo e in args) + ProjectInformationManager.Instance.Get (this).RemoveFile (e.ProjectFile.FilePath); } private static void OnEntryAddedToCombine (object sender, SolutionItemEventArgs e) |