by hubersn » Mon Aug 03, 2009 8:14 pm
I am currently playing around with the new spellchecking feature. I have rolled my own SpellingParser to interface our current spellchecker to RSyntaxTextArea.
Everything works fine so far - it actually spellchecks and the new focusable tooltip is really great to show the suggestions (and for many other usages I am already envisaging!).
However, I would like to be able to switch off spellchecking. I have tried to remove the parser, but that does not work. I have had a look at the code, and one solution would be to do an actionPerformed() on the ParserManager. However, this would restart all registered parsers, and ParserManager is currently not visible from RSyntaxTextArea.
Am I missing something?
A simple, but ugly workaround is to get/set the text again of course, but that does not really fit into the whole nicely-designed RSyntaxTextArea concept!
Greets,
hubersn
I am currently playing around with the new spellchecking feature. I have rolled my own SpellingParser to interface our current spellchecker to RSyntaxTextArea.
Everything works fine so far - it actually spellchecks and the new focusable tooltip is really great to show the suggestions (and for many other usages I am already envisaging!).
However, I would like to be able to switch off spellchecking. I have tried to remove the parser, but that does not work. I have had a look at the code, and one solution would be to do an actionPerformed() on the ParserManager. However, this would restart all registered parsers, and ParserManager is currently not visible from RSyntaxTextArea.
Am I missing something?
A simple, but ugly workaround is to get/set the text again of course, but that does not really fit into the whole nicely-designed RSyntaxTextArea concept!
Greets,
hubersn