1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using System.Collections.Generic;
7
using System.Windows.Controls;
9
using ICSharpCode.Core;
10
using ICSharpCode.Profiler.AddIn.Views;
11
using ICSharpCode.Profiler.Controller;
12
using ICSharpCode.Profiler.Controls;
13
using ICSharpCode.SharpDevelop;
15
namespace ICSharpCode.Profiler.AddIn.Commands
18
/// Description of ShowFunctions
20
public class ShowFunctions : ProfilerMenuCommand
23
/// Starts the command
25
public override void Run()
27
var selectedItem = GetSelectedItems().FirstOrDefault();
28
if (selectedItem != null)
29
Parent.CreateTab(string.Format(StringParser.Parse("${res:AddIns.Profiler.Commands.ShowFunctions.TabTitle}"), selectedItem.GetSignature()),
30
"from f in Functions where f.Signature == \"" + selectedItem.GetSignature() + "\" select f");