Exemple #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);
                }
            }
        }
Exemple #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);
                }
            }
        }
Exemple #3
0
 internal void RemoveSpellChecker(HighlightInvalidKeyrefTagger spellChecker)
 {
     _sink.RemoveFactory(spellChecker);
 }
Exemple #4
0
 internal void AddSpellChecker(HighlightInvalidKeyrefTagger spellChecker)
 {
     _sink.AddFactory(spellChecker);
 }