|[platform-swt-dev] how to highlight selection in text/sourceViewer|
I have opened a file in textViewer and sourceViewer and want to hightlight a selection as per the line number.
I've tried achieving this by calling setSelection method but it sets focus only on within the line number which are currently visible in Viewer and not on those lines for which we need to scroll down or up.
If i'm opening file of 1000 lines, only 20 lines are visible in Viewer and for viewing more lines, we need to scroll up/down accordingly.
how to highlight the selection may be say at line number 800 in such scenario?
Thanks in advance,