ITextViewer. Adds the ability to retrieve the last known selection from outside of the UI Thread.
getLastKnownSelectionITextSelection getLastKnownSelection()Returns the last known selection from a cache, without polling widget.
This may not be the current selection. Indeed, operations that change the selection without sending related events may not refresh the returned value.
As opposed to
ISelectionProvider.getSelection()that usually requires UI Thread, this method can run from any thread.
- the last known selection.