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

4 comments
Comment actions Permalink

Hello Steve,

FileEditorManager.openFile(VirtualFile, boolean) and
FileEditorManager.openEditor(OpenFileDescriptor, boolean) open the
requested file, but focus remains with the editor selected prior to
their invocation.


Guess what the "boolean" parameter is for. :)

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Dmitry,

I have that parameter set to true, and this works correctly under Idea 7.0.

Thanks,
Steve

0
Comment actions Permalink

Hello Steve,

I set that parameter to true, and this works correctly under Idea 7.0.


From what context do you invoke these methods?

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

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

0

Please sign in to leave a comment.