ITextSelection 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.