[Monodevelop-patches-list] r701 - in trunk/MonoDevelop/src: AddIns/DisplayBindings AddIns/DisplayBindings/EditorBindings AddIns/DisplayBindings/EditorBindings/Commands Main/Base/Gui/ContentInterfaces

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Tue Jan 27 23:09:23 EST 2004


Author: benm
Date: 2004-01-27 23:09:23 -0500 (Tue, 27 Jan 2004)
New Revision: 701

Added:
   trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/
   trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Commands/
   trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Commands/BookmarkCommands.cs
   trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Makefile
   trunk/MonoDevelop/src/Main/Base/Gui/ContentInterfaces/IBookmarkOperations.cs
Log:
forgot that ;-)

Added: trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Commands/BookmarkCommands.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Commands/BookmarkCommands.cs	2004-01-28 04:09:20 UTC (rev 700)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Commands/BookmarkCommands.cs	2004-01-28 04:09:23 UTC (rev 701)
@@ -0,0 +1,69 @@
+using System;
+
+using ICSharpCode.Core.Properties;
+using ICSharpCode.Core.Services;
+using ICSharpCode.SharpDevelop.Gui.Dialogs;
+using ICSharpCode.SharpDevelop.Gui;
+using ICSharpCode.Core.AddIns.Codons;
+
+namespace MonoDevelop.EditorBindings.Commands {
+	public class ToggleBookmark : AbstractMenuCommand {
+		public override void Run ()
+		{
+			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+			if (window == null)
+				return;
+			
+			IBookmarkOperations o = window.ViewContent as IBookmarkOperations;
+			if (o == null)
+				return;
+			
+			o.ToggleBookmark ();
+		}
+	}
+	
+	public class PrevBookmark : AbstractMenuCommand	{
+		public override void Run ()
+		{
+			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+			if (window == null)
+				return;
+			
+			IBookmarkOperations o = window.ViewContent as IBookmarkOperations;
+			if (o == null)
+				return;
+			
+			o.PrevBookmark ();
+		}
+	}
+		
+	public class NextBookmark : AbstractMenuCommand	{
+		public override void Run ()
+		{
+			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+			if (window == null)
+				return;
+			
+			IBookmarkOperations o = window.ViewContent as IBookmarkOperations;
+			if (o == null)
+				return;
+			
+			o.NextBookmark ();
+		}
+	}
+		
+	public class ClearBookmarks : AbstractMenuCommand {
+		public override void Run ()
+		{
+			IWorkbenchWindow window = WorkbenchSingleton.Workbench.ActiveWorkbenchWindow;
+			if (window == null)
+				return;
+			
+			IBookmarkOperations o = window.ViewContent as IBookmarkOperations;
+			if (o == null)
+				return;
+			
+			o.ClearBookmarks ();
+		}
+	}
+}
\ No newline at end of file

Added: trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Makefile
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Makefile	2004-01-28 04:09:20 UTC (rev 700)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/EditorBindings/Makefile	2004-01-28 04:09:23 UTC (rev 701)
@@ -0,0 +1,9 @@
+DLL=../../../../build/bin/MonoDevelop.EditorBindings.dll
+
+all : $(DLL)
+
+$(DLL) : $(shell find . -name \*.cs)
+	mcs $(shell find . -name \*.cs) /out:$@ /t:library /r:gtk-sharp /r:gdk-sharp \
+		/r:../../../../build/bin/MonoDevelop.Core.dll \
+		/r:../../../../build/bin/MonoDevelop.Base.dll \
+		/r:../../../../build/bin/MonoDevelop.Gui.Utils.dll

Added: trunk/MonoDevelop/src/Main/Base/Gui/ContentInterfaces/IBookmarkOperations.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Gui/ContentInterfaces/IBookmarkOperations.cs	2004-01-28 04:09:20 UTC (rev 700)
+++ trunk/MonoDevelop/src/Main/Base/Gui/ContentInterfaces/IBookmarkOperations.cs	2004-01-28 04:09:23 UTC (rev 701)
@@ -0,0 +1,8 @@
+namespace ICSharpCode.SharpDevelop.Gui {
+	public interface IBookmarkOperations {
+		void ToggleBookmark ();
+		void PrevBookmark ();
+		void NextBookmark ();
+		void ClearBookmarks ();
+	}
+}
\ No newline at end of file




More information about the Monodevelop-patches-list mailing list