Exemplo n.º 1
0
        public void RemoveSpellChecker(HighlightInvalidKeyrefTagger tagget)
        {
            // This call will always happen on the UI thread (it is a side-effect of adding or removing the 1st/last tagger).
            lock (_managers)
            {
                _spellCheckers.Remove(tagget);

                foreach (var manager in _managers)
                {
                    manager.RemoveSpellChecker(tagget);
                }
            }
        }
Exemplo n.º 2
0
        public void AddSpellChecker(HighlightInvalidKeyrefTagger tagger)
        {
            // This call will always happen on the UI thread (it is a side-effect of adding or removing the 1st/last tagger).
            lock (_managers)
            {
                _spellCheckers.Add(tagger);

                // Tell the preexisting managers about the new spell checker
                foreach (var manager in _managers)
                {
                    manager.AddSpellChecker(tagger);
                }
            }
        }
Exemplo n.º 3
0
 internal void RemoveSpellChecker(HighlightInvalidKeyrefTagger spellChecker)
 {
     _sink.RemoveFactory(spellChecker);
 }
Exemplo n.º 4
0
 internal void AddSpellChecker(HighlightInvalidKeyrefTagger spellChecker)
 {
     _sink.AddFactory(spellChecker);
 }