diff options
author | Lluis Sanchez <lluis@novell.com> | 2010-08-04 21:20:19 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2010-08-04 21:26:50 +0400 |
commit | dcc571ea3326b9402056b89f79507481dcfe6c2f (patch) | |
tree | 336e6f38218598216c2f76c986ecec50744bd77e /main/src/addins/ChangeLogAddIn | |
parent | 975530f188fd0054de11fef4cdef5fa05bbf48b1 (diff) |
Track api changes.
Diffstat (limited to 'main/src/addins/ChangeLogAddIn')
4 files changed, 10 insertions, 3 deletions
diff --git a/main/src/addins/ChangeLogAddIn/ChangeLog b/main/src/addins/ChangeLogAddIn/ChangeLog index 96ddfbe4aa..3e7009bade 100644 --- a/main/src/addins/ChangeLogAddIn/ChangeLog +++ b/main/src/addins/ChangeLogAddIn/ChangeLog @@ -1,3 +1,9 @@ +2010-08-04 Lluis Sanchez Gual <lluis@novell.com> + + * ChangeLogAddIn.cs: + * ProjectOptionPanelWidget.cs: + * CommitDialogExtensionWidget.cs: Track api changes. + 2010-07-28 Lluis Sanchez Gual <lluis@novell.com> * CommitDialogExtensionWidget.cs: Track api changes. diff --git a/main/src/addins/ChangeLogAddIn/ChangeLogAddIn.cs b/main/src/addins/ChangeLogAddIn/ChangeLogAddIn.cs index 775f9973bc..14332c4d66 100644 --- a/main/src/addins/ChangeLogAddIn/ChangeLogAddIn.cs +++ b/main/src/addins/ChangeLogAddIn/ChangeLogAddIn.cs @@ -111,7 +111,7 @@ namespace MonoDevelop.ChangeLogAddIn IEditableTextBuffer textBuffer = document.GetContent<IEditableTextBuffer>(); if (textBuffer == null) return false; - AuthorInformation userInfo = IdeApp.Workspace.GetAuthorInformation (document.Project); + AuthorInformation userInfo = document.Project != null ? document.Project.AuthorInformation : AuthorInformation.Default; if (!userInfo.IsValid) { string title = GettextCatalog.GetString ("ChangeLog entries can't be generated"); diff --git a/main/src/addins/ChangeLogAddIn/CommitDialogExtensionWidget.cs b/main/src/addins/ChangeLogAddIn/CommitDialogExtensionWidget.cs index 3320b9743d..8e9f194dab 100644 --- a/main/src/addins/ChangeLogAddIn/CommitDialogExtensionWidget.cs +++ b/main/src/addins/ChangeLogAddIn/CommitDialogExtensionWidget.cs @@ -34,6 +34,7 @@ using MonoDevelop.Core; using MonoDevelop.Projects.Text; using MonoDevelop.Ide.Gui; using MonoDevelop.Ide; +using MonoDevelop.Projects; namespace MonoDevelop.ChangeLogAddIn { @@ -252,7 +253,7 @@ namespace MonoDevelop.ChangeLogAddIn ChangeLogEntry entry; if (!entries.TryGetValue (logf, out entry)) { entry = new ChangeLogEntry (); - entry.AuthorInformation = IdeApp.Workspace.GetAuthorInformation (parentItem); + entry.AuthorInformation = parentItem.AuthorInformation; entry.MessageStyle = ChangeLogService.GetMessageStyle (parentItem); entry.CantGenerate = cantGenerate; entry.File = logf; diff --git a/main/src/addins/ChangeLogAddIn/ProjectOptionPanelWidget.cs b/main/src/addins/ChangeLogAddIn/ProjectOptionPanelWidget.cs index 760c30c2bc..b3cf82103c 100644 --- a/main/src/addins/ChangeLogAddIn/ProjectOptionPanelWidget.cs +++ b/main/src/addins/ChangeLogAddIn/ProjectOptionPanelWidget.cs @@ -76,7 +76,7 @@ namespace MonoDevelop.ChangeLogAddIn else if (parent.ConfiguredSolution != null) item = parent.ConfiguredSolution.RootFolder; - messageWidget.Load (format, IdeApp.Workspace.GetAuthorInformation (item)); + messageWidget.Load (format, item != null ? item.AuthorInformation : AuthorInformation.Default); } public ChangeLogPolicy GetPolicy () |