public void LoadFrom (ChangeLogPolicy policy) { switch (policy.UpdateMode) { case ChangeLogUpdateMode.None: noneRadioButton.Active = true; break; case ChangeLogUpdateMode.Nearest: nearestRadioButton.Active = true; break; case ChangeLogUpdateMode.ProjectRoot: oneChangeLogInProjectRootDirectoryRadioButton.Active = true; break; case ChangeLogUpdateMode.Directory: oneChangeLogInEachDirectoryRadioButton.Active = true; break; } checkVersionControl.Active = policy.VcsIntegration != VcsIntegration.None; checkRequireOnCommit.Active = policy.VcsIntegration == VcsIntegration.RequireEntry; style = new CommitMessageStyle (); style.CopyFrom (policy.MessageStyle); var format = new CommitMessageFormat (); format.MaxColumns = 70; format.Style = style; SolutionItem item = null; if (parent.ConfiguredSolutionItem != null) item = parent.ConfiguredSolutionItem; else if (parent.ConfiguredSolution != null) item = parent.ConfiguredSolution.RootFolder; messageWidget.Load (format, item != null ? item.AuthorInformation : AuthorInformation.Default); }
public void LoadFrom(ChangeLogPolicy policy) { switch (policy.UpdateMode) { case ChangeLogUpdateMode.None: noneRadioButton.Active = true; break; case ChangeLogUpdateMode.Nearest: nearestRadioButton.Active = true; break; case ChangeLogUpdateMode.ProjectRoot: oneChangeLogInProjectRootDirectoryRadioButton.Active = true; break; case ChangeLogUpdateMode.Directory: oneChangeLogInEachDirectoryRadioButton.Active = true; break; } checkVersionControl.Active = policy.VcsIntegration != VcsIntegration.None; checkRequireOnCommit.Active = policy.VcsIntegration == VcsIntegration.RequireEntry; style = new CommitMessageStyle(); style.CopyFrom(policy.MessageStyle); var format = new CommitMessageFormat(); format.MaxColumns = 70; format.Style = style; SolutionFolderItem item = null; if (parent.ConfiguredSolutionItem != null) { item = parent.ConfiguredSolutionItem; } else if (parent.ConfiguredSolution != null) { item = parent.ConfiguredSolution.RootFolder; } messageWidget.Load(format, item != null ? item.AuthorInformation : AuthorInformation.Default); }
public ChangeLogPolicy(ChangeLogUpdateMode mode, VcsIntegration vcsIntegration, CommitMessageStyle messageStyle) { VcsIntegration = vcsIntegration; UpdateMode = mode; this.messageStyle = messageStyle; }