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 ICSharpCode.Core;
6
using ICSharpCode.Core.WinForms;
7
using ICSharpCode.SharpDevelop.Gui;
9
namespace ResourceEditor
11
class CopyResourceNameCommand : AbstractMenuCommand
13
public override void Run()
15
ResourceEditorControl editor = ((ResourceEditWrapper)WorkbenchSingleton.Workbench.ActiveViewContent).ResourceEditor;
17
if(editor.ResourceList.SelectedItems.Count > 0) {
18
ClipboardWrapper.SetText(editor.ResourceList.SelectedItems[0].Text);