mirror of https://github.com/icsharpcode/ILSpy.git
Browse Source
While the command isn't really necessary to open these panes ("Assemblies" is always open and "Analyzer" opens automatically when analyzing), it is useful to focus these panes without having to use the mouse.pull/2494/head
6 changed files with 61 additions and 20 deletions
@ -1,18 +0,0 @@
@@ -1,18 +0,0 @@
|
||||
#if DEBUG
|
||||
|
||||
using ICSharpCode.ILSpy.Docking; |
||||
using ICSharpCode.ILSpy.Properties; |
||||
using ICSharpCode.ILSpy.ViewModels; |
||||
|
||||
namespace ICSharpCode.ILSpy.Commands |
||||
{ |
||||
[ExportMainMenuCommand(Menu = nameof(Resources._View), Header = nameof(Resources._ShowDebugSteps), MenuOrder = 5000)] |
||||
class ShowDebugSteps : SimpleCommand |
||||
{ |
||||
public override void Execute(object parameter) |
||||
{ |
||||
DockWorkspace.Instance.ShowToolPane(DebugStepsPaneModel.PaneContentId); |
||||
} |
||||
} |
||||
} |
||||
#endif
|
@ -0,0 +1,35 @@
@@ -0,0 +1,35 @@
|
||||
using ICSharpCode.ILSpy.Docking; |
||||
using ICSharpCode.ILSpy.Properties; |
||||
using ICSharpCode.ILSpy.ViewModels; |
||||
|
||||
namespace ICSharpCode.ILSpy.Commands |
||||
{ |
||||
[ExportMainMenuCommand(Menu = nameof(Resources._Window), Header = nameof(Resources._Assemblies), MenuCategory = "pane", MenuOrder = 5000)] |
||||
class ShowAssemblies : SimpleCommand |
||||
{ |
||||
public override void Execute(object parameter) |
||||
{ |
||||
DockWorkspace.Instance.ShowToolPane(AssemblyListPaneModel.PaneContentId); |
||||
} |
||||
} |
||||
|
||||
[ExportMainMenuCommand(Menu = nameof(Resources._Window), Header = nameof(Resources._Analyzer), MenuCategory = "pane", MenuOrder = 5000)] |
||||
class ShowAnalyzer : SimpleCommand |
||||
{ |
||||
public override void Execute(object parameter) |
||||
{ |
||||
DockWorkspace.Instance.ShowToolPane(AnalyzerPaneModel.PaneContentId); |
||||
} |
||||
} |
||||
|
||||
#if DEBUG
|
||||
[ExportMainMenuCommand(Menu = nameof(Resources._Window), Header = nameof(Resources._ShowDebugSteps), MenuCategory = "pane", MenuOrder = 5000)] |
||||
class ShowDebugSteps : SimpleCommand |
||||
{ |
||||
public override void Execute(object parameter) |
||||
{ |
||||
DockWorkspace.Instance.ShowToolPane(DebugStepsPaneModel.PaneContentId); |
||||
} |
||||
} |
||||
#endif
|
||||
} |
Loading…
Reference in new issue