diff --git a/src/GUI/Shared/Handlers/ReverseEngineer/ReverseEngineerHandler.cs b/src/GUI/Shared/Handlers/ReverseEngineer/ReverseEngineerHandler.cs index 67eb02ab8..175e00c2b 100644 --- a/src/GUI/Shared/Handlers/ReverseEngineer/ReverseEngineerHandler.cs +++ b/src/GUI/Shared/Handlers/ReverseEngineer/ReverseEngineerHandler.cs @@ -616,7 +616,7 @@ await VS.MessageBox.ShowAsync( var readmePath = Path.Combine(Path.GetTempPath(), readmeName); - finalText = AddResultToFinalText(finalText, revEngResult); + finalText = reverseEngineerHelper.AddResultToFinalText(finalText, revEngResult); File.WriteAllText(readmePath, finalText, Encoding.UTF8); @@ -698,30 +698,6 @@ private async Task ApplyNavigationRenamersAsync(Project project, string referenc } } - private string AddResultToFinalText(string finalText, ReverseEngineerResult revEngResult) - { - if (revEngResult.HasIssues) - { - var warningText = new StringBuilder(); - - warningText.AppendLine("Some issues were discovered during reverse engineering, consider addressing them:"); - - foreach (var errorItem in revEngResult.EntityErrors) - { - warningText.AppendLine(errorItem); - } - - foreach (var warningItem in revEngResult.EntityWarnings) - { - warningText.AppendLine(warningItem); - } - - finalText = finalText + Environment.NewLine + warningText.ToString(); - } - - return finalText; - } - private async System.Threading.Tasks.Task SaveOptionsAsync(Project project, string optionsPath, ReverseEngineerOptions options, Tuple, string> renamingOptions) { if (File.Exists(optionsPath) && File.GetAttributes(optionsPath).HasFlag(FileAttributes.ReadOnly)) diff --git a/src/GUI/Shared/Helpers/ReverseEngineerHelper.cs b/src/GUI/Shared/Helpers/ReverseEngineerHelper.cs index 3800c6e84..ea2e74c14 100644 --- a/src/GUI/Shared/Helpers/ReverseEngineerHelper.cs +++ b/src/GUI/Shared/Helpers/ReverseEngineerHelper.cs @@ -203,6 +203,33 @@ public string GetReadMeText(ReverseEngineerOptions options, string content, List .Replace("[ContextName]", options.ContextClassName); } + public string AddResultToFinalText(string finalText, ReverseEngineerResult revEngResult) + { + if (revEngResult.HasIssues) + { + var warningText = new StringBuilder(); + + warningText.AppendLine("Some issues were discovered during reverse engineering, consider addressing them:"); + warningText.AppendLine(); + + foreach (var errorItem in revEngResult.EntityErrors) + { + warningText.AppendLine(errorItem); + warningText.AppendLine(); + } + + foreach (var warningItem in revEngResult.EntityWarnings) + { + warningText.AppendLine(warningItem); + warningText.AppendLine(); + } + + finalText = finalText + Environment.NewLine + warningText.ToString(); + } + + return finalText; + } + public bool IsDirectoryEmpty(string path) { return !Directory.EnumerateFileSystemEntries(path).Any(); diff --git a/src/GUI/lib/efreveng60.exe.zip b/src/GUI/lib/efreveng60.exe.zip index 82798d1c2..51d1fbc2d 100644 Binary files a/src/GUI/lib/efreveng60.exe.zip and b/src/GUI/lib/efreveng60.exe.zip differ diff --git a/src/GUI/lib/efreveng70.exe.zip b/src/GUI/lib/efreveng70.exe.zip index bdebad5d7..676061d1c 100644 Binary files a/src/GUI/lib/efreveng70.exe.zip and b/src/GUI/lib/efreveng70.exe.zip differ diff --git a/src/GUI/lib/efreveng80.exe.zip b/src/GUI/lib/efreveng80.exe.zip index f44ead9a5..564d07195 100644 Binary files a/src/GUI/lib/efreveng80.exe.zip and b/src/GUI/lib/efreveng80.exe.zip differ