Browse Source

Sorting/Grouping of context menu entries

pull/724/head
Ed Harvey 10 years ago
parent
commit
0317bc10f4
  1. 2
      ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs
  2. 2
      ILSpy/TreeNodes/Analyzer/RemoveAnalyzeContextMenuEntry.cs
  3. 6
      ILSpy/TreeNodes/AssemblyTreeNode.cs
  4. 2
      ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs

2
ILSpy/TreeNodes/Analyzer/AnalyzeContextMenuEntry.cs

@ -24,7 +24,7 @@ using Mono.Cecil; @@ -24,7 +24,7 @@ using Mono.Cecil;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
{
[ExportContextMenuEntryAttribute(Header = "Analyze", Icon = "images/Search.png")]
[ExportContextMenuEntry(Header = "Analyze", Icon = "images/Search.png", Category = "Analyze", Order = 100)]
internal sealed class AnalyzeContextMenuEntry : IContextMenuEntry
{
public bool IsVisible(TextViewContext context)

2
ILSpy/TreeNodes/Analyzer/RemoveAnalyzeContextMenuEntry.cs

@ -20,7 +20,7 @@ using System.Linq; @@ -20,7 +20,7 @@ using System.Linq;
namespace ICSharpCode.ILSpy.TreeNodes.Analyzer
{
[ExportContextMenuEntryAttribute(Header = "Remove", Icon = "images/Delete.png")]
[ExportContextMenuEntry(Header = "Remove", Icon = "images/Delete.png", Category = "Analyze", Order = 200)]
internal sealed class RemoveAnalyzeContextMenuEntry : IContextMenuEntry
{
public bool IsVisible(TextViewContext context)

6
ILSpy/TreeNodes/AssemblyTreeNode.cs

@ -293,7 +293,7 @@ namespace ICSharpCode.ILSpy.TreeNodes @@ -293,7 +293,7 @@ namespace ICSharpCode.ILSpy.TreeNodes
}
}
[ExportContextMenuEntryAttribute(Header = "_Remove", Icon = "images/Delete.png")]
[ExportContextMenuEntry(Header = "_Remove", Icon = "images/Delete.png")]
sealed class RemoveAssembly : IContextMenuEntry
{
public bool IsVisible(TextViewContext context)
@ -350,7 +350,7 @@ namespace ICSharpCode.ILSpy.TreeNodes @@ -350,7 +350,7 @@ namespace ICSharpCode.ILSpy.TreeNodes
}
}
[ExportContextMenuEntry(Header = "_Load Dependencies")]
[ExportContextMenuEntry(Header = "_Load Dependencies", Category = "Dependencies")]
sealed class LoadDependencies : IContextMenuEntry
{
public bool IsVisible(TextViewContext context)
@ -381,7 +381,7 @@ namespace ICSharpCode.ILSpy.TreeNodes @@ -381,7 +381,7 @@ namespace ICSharpCode.ILSpy.TreeNodes
}
}
[ExportContextMenuEntry(Header = "_Add To Main List")]
[ExportContextMenuEntry(Header = "_Add To Main List", Category = "Dependencies")]
sealed class AddToMainList : IContextMenuEntry
{
public bool IsVisible(TextViewContext context)

2
ILSpy/TreeNodes/SearchMsdnContextMenuEntry.cs

@ -26,7 +26,7 @@ using ICSharpCode.ILSpy.TreeNodes.Analyzer; @@ -26,7 +26,7 @@ using ICSharpCode.ILSpy.TreeNodes.Analyzer;
namespace ICSharpCode.ILSpy.TreeNodes
{
[ExportContextMenuEntryAttribute(Header = "Search MSDN...", Icon = "images/SearchMsdn.png")]
[ExportContextMenuEntry(Header = "Search MSDN...", Icon = "images/SearchMsdn.png", Order = 9999)]
internal sealed class SearchMsdnContextMenuEntry : IContextMenuEntry
{
private static string msdnAddress = "http://msdn.microsoft.com/en-us/library/{0}";

Loading…
Cancel
Save