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?

0
1 comment

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

1

Please sign in to leave a comment.