diff options
author | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-13 16:44:59 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@novell.com> | 2011-03-14 14:15:49 +0300 |
commit | a54e2a6ff1ad85bb8448ef457dbfcc62f018eade (patch) | |
tree | 881783545659707d89f8e1b30b716e66baa89c7b /main/src/addins/MonoDeveloperExtensions | |
parent | 081418188b1c86fe0c3e17b663da0fa4462bfdd4 (diff) |
Track api changes.
Diffstat (limited to 'main/src/addins/MonoDeveloperExtensions')
-rw-r--r-- | main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs | 33 |
1 files changed, 19 insertions, 14 deletions
diff --git a/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs b/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs index 00f7bdcab8..8b9bb81d18 100644 --- a/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs +++ b/main/src/addins/MonoDeveloperExtensions/MonoSolutionItemHandler.cs @@ -231,35 +231,40 @@ namespace MonoDeveloper return error; } - void OnFileAddedToProject (object s, ProjectFileEventArgs e) + void OnFileAddedToProject (object s, ProjectFileEventArgs args) { if (loading) return; - if (e.ProjectFile.BuildAction != BuildAction.Compile) - return; - - AddSourceFile (e.ProjectFile.Name); + foreach (ProjectFileEventInfo e in args) { + if (e.ProjectFile.BuildAction != BuildAction.Compile) + continue; + AddSourceFile (e.ProjectFile.Name); + } } - void OnFileRemovedFromProject (object s, ProjectFileEventArgs e) + void OnFileRemovedFromProject (object s, ProjectFileEventArgs args) { if (loading) return; - if (e.ProjectFile.BuildAction != BuildAction.Compile) - return; + foreach (ProjectFileEventInfo e in args) { + if (e.ProjectFile.BuildAction != BuildAction.Compile) + continue; - RemoveSourceFile (e.ProjectFile.Name); + RemoveSourceFile (e.ProjectFile.Name); + } } - void OnFileRenamedInProject (object s, ProjectFileRenamedEventArgs e) + void OnFileRenamedInProject (object s, ProjectFileRenamedEventArgs args) { if (loading) return; - if (e.ProjectFile.BuildAction != BuildAction.Compile) - return; + foreach (ProjectFileRenamedEventInfo e in args) { + if (e.ProjectFile.BuildAction != BuildAction.Compile) + continue; - if (RemoveSourceFile (e.OldName)) - AddSourceFile (e.NewName); + if (RemoveSourceFile (e.OldName)) + AddSourceFile (e.NewName); + } } void AddSourceFile (string sourceFile) |