FileEditorManager.getSelectedEditor() is gone, now what?

I understand that getSelectedEditor() wants a VirtualFile and that I can call getSelectedFiles() to get all the selected files to pass to getSelectedEditor. However, I just want to get whatever editor currently has the caret/focus. Is there now no way to accomplish this?

1 comment
Comment actions Permalink

Ah, the method is now called getSelectedTextEditor(). I should have looked harder.

0

Please sign in to leave a comment.