8418: FileEditorManager.openX methods don't focus editor
Hi,
FileEditorManager.openFile(VirtualFile, boolean) and FileEditorManager.openEditor(OpenFileDescriptor, boolean) open the requested file, but focus remains with the editor selected prior to their invocation.
- Steve
Please sign in to leave a comment.
Hello Steve,
Guess what the "boolean" parameter is for. :)
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
I have that parameter set to true, and this works correctly under Idea 7.0.
Thanks,
Steve
Hello Steve,
From what context do you invoke these methods?
--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"
Hi Dmitry,
the code doesn't execute execute in a read or write context (ApplicationManager.getApplication().runWriteAction...), it's just called from the entry point of the plugin.
Thanks,
Steve