How can i change the selected Editor? Permanently deleted user Created January 16, 2014 17:03 How can i change the selected editor? I have anEditor and i want to make it active/focus on it.Thank you!Best Regards,Sebastian
If the editor is in an editor tab, use FileEditorManager.setSelectedEditor(). Otherwise, use IdeFocusManager.requestFocus(), like you would with any other component.
But i don't have FileEditorManager.setSelectedEditor() method in Idea 12.1.6. Is there any other way i can do it?
I changed to IDEA 13, and i'm still not getting what i was needing from any of the methods.
FileEditorManager.getInstance(project).setSelectedEditor(myEditor.getFile(), MyFileEditorProvider.getEditorTypeId())
IdeFocusManager.getInstance(project).requestFocus(myEditor.getComponent(), true);
The selected editor dosn't change...
Is ther somthing that i am missing?
Thank you!