diff options
author | Lluis Sanchez <lluis@novell.com> | 2009-08-06 16:25:17 +0400 |
---|---|---|
committer | Lluis Sanchez <lluis@novell.com> | 2009-08-06 16:25:17 +0400 |
commit | 9c4b7740848770eced43ff0f685311c79584a657 (patch) | |
tree | 1652068dab563da8837d47cd018e611caa5dde35 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands | |
parent | 4105b32d1bc359a9f0ef99406b423b19723b8465 (diff) |
* Makefile.am:
* gtk-gui/gui.stetic:
* MonoDevelop.Ide.csproj:
* MonoDevelop.Ide.addin.xml:
* MonoDevelop.Ide/Services.cs:
* MonoDevelop.Ide.Gui/Document.cs:
* MonoDevelop.Ide.Gui/IdeStartup.cs:
* MonoDevelop.Ide.Codons/PadCodon.cs:
* MonoDevelop.Ide.Gui/IdePreferences.cs:
* MonoDevelop.Ide.Gui/SdiWorkspaceLayout.cs:
* MonoDevelop.Ide.Commands/ToolsCommands.cs:
* MonoDevelop.Ide.Gui.OptionPanels/MaintenanceOptionsPanel.cs:
* gtk-gui/MonoDevelop.Ide.Gui.OptionPanels.MaintenanceOptionsPanelWidget.cs:
Add support for the instrumentation service. Added a new command for
showing the viewer. Added an options panel for enabling it. Added
some counters.
* gtk-gui/MonoDevelop.Ide.FindInFiles.SearchResultWidget.cs: Flush.
svn path=/trunk/monodevelop/; revision=139475
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ToolsCommands.cs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ToolsCommands.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ToolsCommands.cs index a6e845da57..86af5babbb 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ToolsCommands.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Commands/ToolsCommands.cs @@ -45,7 +45,8 @@ namespace MonoDevelop.Ide.Commands public enum ToolCommands { AddinManager, - ToolList + ToolList, + InstrumentationViewer } internal class AddinManagerHandler : CommandHandler @@ -129,4 +130,18 @@ namespace MonoDevelop.Ide.Commands } } + + internal class InstrumentationViewerHandler : CommandHandler + { + protected override void Run () + { + InstrumentationViewerDialog dlg = new InstrumentationViewerDialog (); + dlg.Show (); + } + + protected override void Update (CommandInfo info) + { + info.Visible = MonoDevelop.Core.Instrumentation.InstrumentationService.Enabled; + } + } } |