We should probably rationalise the calls to SyntaxHighlighter.syntax_highlight(): when a file is opened, it's highlighted several times. All of them comes from runSwingLater(NammuController.initHighlighting). In particular:
- for an English-only file, two calls come from
AtfEditArea.setText, and one from NammuController.openFile
- for a file with Arabic translation, two calls come from
AtfEditArea.setText, one from NammuController.openFile, and six from atfAreaAdjustmentListener.adjustmentValueChanged
It's possible that, e.g., NammuController.openFile itself is calling AtfEditArea.setText, I'm counting the calling places
We should probably rationalise the calls to
SyntaxHighlighter.syntax_highlight(): when a file is opened, it's highlighted several times. All of them comes fromrunSwingLater(NammuController.initHighlighting). In particular:AtfEditArea.setText, and one fromNammuController.openFileAtfEditArea.setText, one fromNammuController.openFile, and six fromatfAreaAdjustmentListener.adjustmentValueChangedIt's possible that, e.g.,
NammuController.openFileitself is callingAtfEditArea.setText, I'm counting the calling places