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
Please sign in to leave a comment.
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?
I think maybe https://devnet.jetbrains.com/message/5548273#5548273 answers it.
The same value is now available via EditorEx.getExpectedCaretOffset()
thank you!