protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _source = new CharDisplayTaggerSource(_textView, new Mock <IEditorFormatMap>(MockBehavior.Loose).Object, Vim.GlobalSettings); _basicTaggerSource = _source; }
protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _source = new CharDisplayTaggerSource(_textView, new Mock<IEditorFormatMap>(MockBehavior.Loose).Object, Vim.GlobalSettings); _basicTaggerSource = _source; }
public SubstituteConfirmTaggerSourceTest() { _factory = new MockRepository(MockBehavior.Loose); _mode = _factory.Create <ISubstituteConfirmMode>(); _textBuffer = CreateTextBuffer("cat", "dog", "bird", "tree"); _taggerSourceRaw = new SubstituteConfirmTaggerSource(_textBuffer, _mode.Object); _taggerSource = _taggerSourceRaw; }
public void SetUp() { _factory = new MockRepository(MockBehavior.Loose); _mode = _factory.Create<ISubstituteConfirmMode>(); _textBuffer = CreateTextBuffer("cat", "dog", "bird", "tree"); _taggerSourceRaw = new SubstituteConfirmTaggerSource(_textBuffer, _mode.Object); _taggerSource = _taggerSourceRaw; }
public void Create(params string[] lines) { _vimBuffer = CreateVimBuffer(lines); _textView = _vimBuffer.TextView; _globalSettings = _vimBuffer.LocalSettings.GlobalSettings; _globalSettings.IncrementalSearch = true; _globalSettings.WrapScan = true; _search = _vimBuffer.IncrementalSearch; _taggerSourceRaw = new IncrementalSearchTaggerSource(_vimBuffer); _taggerSource = _taggerSourceRaw; }
internal void Create(params string[] lines) { _vimBuffer = CreateVimBuffer(lines); _textView = _vimBuffer.TextView; _globalSettings = _vimBuffer.LocalSettings.GlobalSettings; _globalSettings.IncrementalSearch = true; _globalSettings.WrapScan = true; _search = _vimBuffer.IncrementalSearch; _taggerSourceRaw = new IncrementalSearchTaggerSource(_vimBuffer); _taggerSource = _taggerSourceRaw; }
protected virtual void Create(params string[] lines) { _textView = CreateTextView(lines); _textBuffer = _textView.TextBuffer; _controlCharUtil = new ControlCharUtil(); _classificationFormatMap = new Mock <IClassificationFormatMap>(MockBehavior.Strict); var typeface = SystemFonts.CaptionFontFamily.GetTypefaces().First(); var textFormattingProperties = TextFormattingRunProperties.CreateTextFormattingRunProperties(typeface, 10.0, Colors.Black); _classificationFormatMap.SetupGet(x => x.DefaultTextProperties).Returns(textFormattingProperties); _source = new CharDisplayTaggerSource( _textView, new Mock <IEditorFormatMap>(MockBehavior.Loose).Object, _controlCharUtil, _classificationFormatMap.Object); _basicTaggerSource = _source; }
internal BasicTagger(IBasicTaggerSource <TTag> basicTaggerSource) { Contract.Requires(basicTaggerSource != null); _basicTaggerSource = basicTaggerSource; _basicTaggerSource.Changed += OnBasicTaggerSourceChanged; }
public static IClassifier CreateClassifierRaw(IBasicTaggerSource <IClassificationTag> basicTaggerSource) { return(new Classifier(CreateTaggerRaw(basicTaggerSource))); }
/// <summary> /// Create an ITagger implementation for the IBasicTaggerSource /// </summary> public static ITagger <TTag> CreateTaggerRaw <TTag>(IBasicTaggerSource <TTag> basicTaggerSource) where TTag : ITag { return(new BasicTagger <TTag>(basicTaggerSource)); }