[Monodevelop-patches-list] r1034 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Wed Feb 25 21:35:43 EST 2004
Author: tberman
Date: 2004-02-25 21:35:42 -0500 (Wed, 25 Feb 2004)
New Revision: 1034
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
Log:
added some MessageService action.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs 2004-02-26 02:18:42 UTC (rev 1033)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceInFilesManager.cs 2004-02-26 02:35:42 UTC (rev 1034)
@@ -105,6 +105,8 @@
{
TaskService taskService = (TaskService)ICSharpCode.Core.Services.ServiceManager.Services.GetService(typeof(TaskService));
taskService.NotifyTaskChange();
+ 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();
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-26 02:18:42 UTC (rev 1033)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Search/SearchReplaceManager.cs 2004-02-26 02:35:42 UTC (rev 1034)
@@ -42,6 +42,7 @@
static IFind find = new DefaultFind();
static SearchOptions searchOptions = new SearchOptions("SharpDevelop.SearchAndReplace.SearchAndReplaceProperties");
+ static MessageService MessageService = (MessageService)ServiceManager.Services.GetService (typeof (MessageService));
public static SearchOptions SearchOptions {
get {
@@ -101,6 +102,7 @@
if (result == null) {
//MessageBox.Show((Form)WorkbenchSingleton.Workbench, "Mark all done", "Finished");
+ MessageService.ShowMessage ("Mark all completed");
find.Reset();
return;
} else {
@@ -133,6 +135,7 @@
if (result == null) {
//MessageBox.Show((Form)WorkbenchSingleton.Workbench, "Replace all done", "Finished");
+ MessageService.ShowMessage ("Replace all finished");
find.Reset();
return;
} else {
@@ -158,16 +161,16 @@
find.SearchStrategy.CompilePattern(searchOptions);
ISearchResult result = find.FindNext(searchOptions);
-
+
if (result == null) {
ResourceService resourceService = (ResourceService)ServiceManager.Services.GetService(typeof(IResourceService));
//FIXME: This needs to be a msg or whatever
- Console.WriteLine ("Not Found");
/*MessageBox.Show((Form)WorkbenchSingleton.Workbench,
resourceService.GetString("Dialog.NewProject.SearchReplace.SearchStringNotFound"),
"Not Found",
MessageBoxButtons.OK,
MessageBoxIcon.Information);*/
+ MessageService.ShowMessage ("Not Found");
find.Reset();
} else {
SourceEditor textArea = OpenTextArea(result.FileName);
More information about the Monodevelop-patches-list
mailing list