EditorActionUtil.EXPECTED_CARET_OFFSET disappears in IDEA 15

Hi, what's the new way in IDEA 15 to get this data?  I'm currently using like this:

 
final Integer offset = editor.getUserData(EditorActionUtil.EXPECTED_CARET_OFFSET);
if (offset != null) {
   selectedPsiRuleNode = file.findElementAt(offset);
}
else {
   selectedPsiRuleNode = BaseRefactoringAction.getElementAtCaret(editor, file);
}


Can't find IDEA 15 open source. Any pointers? git shows only build 143 max.

thanks!
Ter

4 comments
Comment actions Permalink

oh. website for "download 15" shows 14.1:

https://www.jetbrains.com/idea/download/

but clicking downloads 15. ok. so build 143 *is* 15, eh? Still how do I get EXPECTED_CARET_OFFSET in 15?

0
Comment actions Permalink

The same value is now available via EditorEx.getExpectedCaretOffset()

0

Please sign in to leave a comment.