Browse Source

add infotip to DecompiledViewContent

pull/16/head
Eusebiu Marcu 14 years ago
parent
commit
e9913b7b51
  1. 5
      src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs

5
src/AddIns/DisplayBindings/ILSpyAddIn/ViewContent/DecompiledViewContent.cs

@ -27,6 +27,7 @@ namespace ICSharpCode.ILSpyAddIn
{ {
readonly string assemblyFile; readonly string assemblyFile;
readonly string fullTypeName; readonly string fullTypeName;
readonly string tempFileName;
/// <summary> /// <summary>
/// Entity to jump to once decompilation has finished. /// Entity to jump to once decompilation has finished.
@ -48,6 +49,8 @@ namespace ICSharpCode.ILSpyAddIn
string shortTypeName = fullTypeName.Substring(fullTypeName.LastIndexOf('.') + 1); string shortTypeName = fullTypeName.Substring(fullTypeName.LastIndexOf('.') + 1);
this.TitleName = "[" + shortTypeName + "]"; this.TitleName = "[" + shortTypeName + "]";
tempFileName = string.Format("decompiled/{0}.cs", fullTypeName);
this.InfoTip = tempFileName;
Thread thread = new Thread(DecompilationThread); Thread thread = new Thread(DecompilationThread);
thread.Name = "Decompiler (" + shortTypeName + ")"; thread.Name = "Decompiler (" + shortTypeName + ")";
@ -205,8 +208,6 @@ namespace ICSharpCode.ILSpyAddIn
#region Update UI #region Update UI
void UpdateIconMargin(string text) void UpdateIconMargin(string text)
{ {
string tempFileName = string.Format("decompiled/{0}.cs", fullTypeName);
codeView.IconBarManager.UpdateClassMemberBookmarks(ParserService.ParseFile(tempFileName, new StringTextBuffer(text))); codeView.IconBarManager.UpdateClassMemberBookmarks(ParserService.ParseFile(tempFileName, new StringTextBuffer(text)));
// load bookmarks // load bookmarks

Loading…
Cancel
Save