4 changed files with 0 additions and 56 deletions
@ -1,40 +0,0 @@ |
|||||||
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
|
|
||||||
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
|
|
||||||
|
|
||||||
using System; |
|
||||||
using System.Windows.Documents; |
|
||||||
using ICSharpCode.AvalonEdit.Editing; |
|
||||||
using ICSharpCode.Core; |
|
||||||
using ICSharpCode.SharpDevelop.Editor; |
|
||||||
using ICSharpCode.SharpDevelop.Gui; |
|
||||||
|
|
||||||
namespace ICSharpCode.AvalonEdit.AddIn.Commands |
|
||||||
{ |
|
||||||
public class RunIncrementalSearch : AbstractMenuCommand |
|
||||||
{ |
|
||||||
public override void Run() |
|
||||||
{ |
|
||||||
ITextEditorProvider provider = WorkbenchSingleton.Workbench.ActiveViewContent as ITextEditorProvider; |
|
||||||
if (provider != null) { |
|
||||||
TextArea textArea = provider.TextEditor.GetService(typeof(TextArea)) as TextArea; |
|
||||||
if (textArea != null) { |
|
||||||
textArea.ActiveInputHandler = new IncrementalSearch(textArea, LogicalDirection.Forward); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
|
|
||||||
public class RunReverseIncrementalSearch : AbstractMenuCommand |
|
||||||
{ |
|
||||||
public override void Run() |
|
||||||
{ |
|
||||||
ITextEditorProvider provider = WorkbenchSingleton.Workbench.ActiveViewContent as ITextEditorProvider; |
|
||||||
if (provider != null) { |
|
||||||
TextArea textArea = provider.TextEditor.GetService(typeof(TextArea)) as TextArea; |
|
||||||
if (textArea != null) { |
|
||||||
textArea.ActiveInputHandler = new IncrementalSearch(textArea, LogicalDirection.Backward); |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
} |
|
||||||
Loading…
Reference in new issue