void ISearchDataSource.Activate(int item) { var options = new FilterOptions(); if (PropertyService.Get("AutoSetPatternCasing", true)) { options.CaseSensitive = searchPattern.Pattern.Any(c => char.IsUpper(c)); } FindInFilesDialog.SearchReplace(searchPattern.Pattern, null, new WholeSolutionScope(), options, null); }
public override void Activate() { var options = new FilterOptions(); if (PropertyService.Get("AutoSetPatternCasing", true)) { options.CaseSensitive = pattern.Pattern.Any(char.IsUpper); } FindInFilesDialog.SearchReplace(pattern.Pattern, null, new WholeSolutionScope(), options, null, null); }
public override void Execute() { FindDialog.CloseIfOpen(); FindInFilesDialog.CloseIfOpen(); ReplaceDialog replaceDialog = ReplaceDialog.GetReplaceDialog(this.FindReplaceModel, this.TextEditor, this.MessageDisplayService); if (!this.TextEditor.IsSelectionEmpty) { string text = this.TextEditor.GetText(this.TextEditor.SelectionStart, this.TextEditor.SelectionLength); if (!string.IsNullOrEmpty(text) && text.IndexOf('\n') == -1) { replaceDialog.FindText = text; } } replaceDialog.Show(); }
public override void Execute() { ReplaceDialog.CloseIfOpen(); FindInFilesDialog.CloseIfOpen(); FindDialog findDialog = FindDialog.GetFindDialog(this.FindReplaceModel, this.TextEditor, this.MessageDisplayService); if (string.IsNullOrEmpty(findDialog.FindText)) { findDialog.SearchReverse = false; findDialog.Show(); } else { if (!findDialog.FindNext()) { return; } this.TextEditor.Focus(); } }
public void OnFindInFiles() { Solution solution = (Solution)CurrentNode.DataItem; FindInFilesDialog.FindInPath(solution.BaseDirectory); }
public void OnFindInFiles() { string path = GetDir(CurrentNode.DataItem); FindInFilesDialog.FindInPath(path); }
public override void Execute() { FindDialog.CloseIfOpen(); ReplaceDialog.CloseIfOpen(); FindInFilesDialog.GetFindInFilesDialog(this.services).Show(); }