[Monodevelop-patches-list] r704 - trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Commands

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Wed Jan 28 12:48:17 EST 2004


Author: benm
Date: 2004-01-28 12:48:17 -0500 (Wed, 28 Jan 2004)
New Revision: 704

Modified:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Commands/SearchCommands.cs
Log:
this class needs to be back

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Commands/SearchCommands.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Commands/SearchCommands.cs	2004-01-28 17:38:39 UTC (rev 703)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/TextEditor/Commands/SearchCommands.cs	2004-01-28 17:48:17 UTC (rev 704)
@@ -29,6 +29,25 @@
 
 namespace ICSharpCode.SharpDevelop.DefaultEditor.Commands
 {
+	
+	public abstract class AbstractEditActionMenuCommand : AbstractMenuCommand
+	{
+		public abstract IEditAction EditAction {
+			get;
+		}
+		
+		public override void Run()
+		{
+			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+			
+			if (window == null || !(window.ViewContent is ITextEditorControlProvider)) {
+				return;
+			}
+			TextEditorControl textEditor = ((ITextEditorControlProvider)window.ViewContent).TextEditorControl;
+			EditAction.Execute(textEditor.ActiveTextAreaControl.TextArea);
+		}
+	}
+	
 	public class Find : AbstractMenuCommand
 	{
 		public static void SetSearchPattern()




More information about the Monodevelop-patches-list mailing list