Replies: 3 comments 1 reply
-
Hi! Can you try using |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi @AlexPl292 -- There doesn't seem to be an |
Beta Was this translation helpful? Give feedback.
0 replies
-
Here's a workaround I've come up with: Window mostRecentFocusedWindow =
WindowManager.getInstance().getMostRecentFocusedWindow();
if (!(mostRecentFocusedWindow instanceof IdeFrame activeFrame)) return;
Editor editor = FileEditorManager.getInstance(activeFrame.getProject()).getSelectedTextEditor(); It doesn't feel ideal though. It would be great if the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm writing an extension for IdeaVim. My extension receives a
IJVimEditor
object which implements theVimEditor
interface. I'd like to access its linkedcom.intellij.openapi.editor.Editor
object. The issue is that, while theIJVimEditor
class has agetEditor()
method, the class is annotated as internal and therefore I cannot use it directly. TheVimEditor
interface is public but it does not have agetEditor()
method.Is there a workaround that I could use to access the
Editor
object?Thank you.
Beta Was this translation helpful? Give feedback.
All reactions