Open custom editor from anAction

Hi,
I would like to open my custom file editor from an action performed in project structure popup menu window.
I have implemented anAction, FileEditorProvided and editor itself. How can I invoke it for selected file? I do not want to bind editor to specific file extensions.

2 comments
Comment actions Permalink

You cannot open a custom editor for an existing file at an arbitrary moment. Either the accept() method of your FileEditorProvider returns true for a file, and then IntelliJ IDEA will always show your editor when the user opens the file, or it returns false, and then IntelliJ IDEA will never display your editor for that file.

0
Comment actions Permalink

Thanks for your reply.
Now, I figured out mechanism, that additional editors are displayed as tab in editor window (if only they were accepted).

0

Please sign in to leave a comment.