Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ internal static void SearchReplace (string findPattern, string replacePattern, S
ThreadPool.QueueUserWorkItem (delegate {
using (ISearchProgressMonitor searchMonitor = IdeApp.Workbench.ProgressMonitors.GetSearchProgressMonitor (true)) {
searchMonitor.ReportStatus (scope.GetDescription (options, pattern, null));
searchMonitor.SetPattern(pattern);

lock (searchesInProgress)
searchesInProgress.Add (searchMonitor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,5 +38,6 @@ public interface ISearchProgressMonitor: IProgressMonitor
void ReportResult (SearchResult result);
void ReportResults (IEnumerable<SearchResult> result);
void ReportStatus (string resultMessage);
void SetPattern (string patern);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,14 @@ public void ReportStatus (string resultMessage)
{
outputPad.ReportStatus (resultMessage);
}

[AsyncDispatch]
public void SetPattern (string pattern)
{
outputPad.SetPattern (pattern);
}



protected override void OnWriteLog (string text)
{
Expand Down Expand Up @@ -160,4 +168,4 @@ public override void EndTask ()
statusMonitor.EndTask ();
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,12 @@ public void ReportStatus (string statusText)
{
widget.ShowStatus (statusText);
}


public void SetPattern(string pattern)
{
Window.Title = pattern;
}

#region CommandHandler
[CommandHandler (ViewCommands.Open)]
protected void OnOpen ()
Expand Down