OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Native Client Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #region | |
6 | |
7 using System.Windows.Forms; | |
8 using Google.NaClVsx.DebugSupport.DWARF; | |
9 | |
10 #endregion | |
11 | |
12 namespace SymbolDBViewer { | |
13 /// <summary> | |
14 /// Specializes the DictionaryLoader for loading the Source Files. | |
15 /// </summary> | |
16 public class SourceFileLoader : DictionaryLoader<SymbolDatabase.SourceFile> { | |
17 protected override TreeNode GetTreeNode(ulong key, | |
18 SymbolDatabase.SourceFile file) { | |
19 var fileNode = new TreeNode(); | |
20 var keyString = GetString(key); | |
21 fileNode.Name = keyString; | |
22 fileNode.Text = @"File: " + keyString; | |
23 var valuesString = string.Format( | |
24 "Values: Key: {0} FileName: {1} RelativePath: {2} AbsolutePath: {3}", | |
25 file.Key, | |
26 file.Filename, | |
27 file.RelativePath, | |
28 file.CurrentAbsolutePath); | |
29 fileNode.Nodes.Add("Values", valuesString); | |
30 return fileNode; | |
31 } | |
32 } | |
33 } | |
OLD | NEW |