[Monodevelop-patches-list] r1212 - in trunk/MonoDevelop: . src/AddIns/DisplayBindings/SourceEditor/Search

commit-watcher at mono-cvs.ximian.com commit-watcher at mono-cvs.ximian.com
Sun Mar 21 01:19:29 EST 2004


Author: jba
Date: 2004-03-21 01:19:29 -0500 (Sun, 21 Mar 2004)
New Revision: 1212

Modified:
   trunk/MonoDevelop/ChangeLog
   trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs
Log:
fixed taskview to be presented before 'search completed' dialog

Modified: trunk/MonoDevelop/ChangeLog
===================================================================
--- trunk/MonoDevelop/ChangeLog	2004-03-21 02:54:25 UTC (rev 1211)
+++ trunk/MonoDevelop/ChangeLog	2004-03-21 06:19:29 UTC (rev 1212)
@@ -1,3 +1,8 @@
+2004-03-21	John BouAntoun  <jba-mono at optusnet.com.au>
+
+	* src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs:
+	fixed taskview to be presented before "search completed" dialog.
+	
 2004-03-20 Iain McCoy <iainmccoy at optusnet.com.au>
 	* configure.in: forgot to undo a change that was part of one of the
 	mistakes I made :)

Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs	2004-03-21 02:54:25 UTC (rev 1211)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs	2004-03-21 06:19:29 UTC (rev 1212)
@@ -105,11 +105,16 @@
 		{
 			TaskService taskService = (TaskService)MonoDevelop.Core.Services.ServiceManager.Services.GetService(typeof(TaskService));
 			taskService.NotifyTaskChange();
+			
+			// present the taskview to show the search results
+			OpenTaskView taskView = WorkbenchSingleton.Workbench.GetPad(typeof(OpenTaskView)) as OpenTaskView;
+			if (taskView != null) {
+				taskView.BringToFront();
+			}
+			
+			// tell the user search is done.
 			MessageService MessageService = (MessageService)ServiceManager.Services.GetService (typeof (MessageService));
 			MessageService.ShowMessage ("Search completed");
-			
-			OpenTaskView taskView = WorkbenchSingleton.Workbench.GetPad(typeof(OpenTaskView)) as OpenTaskView;
-			if (taskView != null) taskView.BringToFront();
 		}
 		
 		public static void ReplaceAll()




More information about the Monodevelop-patches-list mailing list