I found another way to be notified when the carriages moved. By calling textViewer.addPostSelectionChangedListener on the TextViewer instance, you get a notification when the caret moves.
I also used this answer to get a TextViewer from IEditorPart.
The only problem is that this method is noticeably slower than the one I did before with the caretMoved event. So, I hope there is a way to change the behavior depending on the version of Eclipse, because I'm not sure that I would be happy to make such a compromise in speed in newer versions.
I hope this helps others who come across this issue.
Alan
source share