public static string HeapCellFileNameAndPath(HeapCell aCell, string aBasePath, string aStandardSubDir) { string basicName = HeapCellFileName(aCell); string combinedSubDir = HeapCellDirectory(aCell, aStandardSubDir, System.IO.Path.DirectorySeparatorChar); string heapDataFileName = HeapToHTMLConverter.PageFileNameEnsuringPathExists(basicName, aBasePath, combinedSubDir); return(heapDataFileName); }
public HeapToHTMLPageHeapCellManager(HeapReconstructor aReconstructor, string aBasePath) { iReconstructor = aReconstructor; iEntries = iReconstructor.Data; iBasePath = aBasePath; // Make sure our required directories exist HeapToHTMLConverter.PageDirectoryNameEnsuringPathExists(iBasePath, "HeapData"); HeapToHTMLConverter.PageDirectoryNameEnsuringPathExists(iBasePath, "HeapLinkInfo"); }
public override void ExportData() { string javaScriptLibSourceFileName = Path.Combine(System.Windows.Forms.Application.StartupPath, JavaScriptHelperFileName); if (File.Exists(javaScriptLibSourceFileName) == false) { throw new FileNotFoundException("Cannot locate Heap Data java script library", javaScriptLibSourceFileName); } string javaScriptLibFileNameHeapData = Path.Combine(HeapToHTMLConverter.PageDirectoryNameEnsuringPathExists(iBasePath, "HeapData"), JavaScriptHelperFileName); File.Copy(javaScriptLibSourceFileName, javaScriptLibFileNameHeapData, true); iPosition++; string javaScriptLibFileNameHeapLinkInfo = Path.Combine(HeapToHTMLConverter.PageDirectoryNameEnsuringPathExists(iBasePath, "HeapLinkInfo"), JavaScriptHelperFileName); File.Copy(javaScriptLibSourceFileName, javaScriptLibFileNameHeapLinkInfo, true); iPosition++; }