* Tries to place the cursor on the token (0-length selection) if we have a valid location
*/
protected HighlightRange placeCursorOnLineIfPossible(RealLoc loc) {
try {
int startOffset = ParserLocationTranslator.getStartOffset(loc, fEditor.getDocument());
HighlightRange range = new HighlightRange(startOffset, 0);
fEditor.setSelection(range, true);
return range;
} catch (BadLocationException e) {
return null;
}