How to use the same custom editor instance (FileEditor interface) for multiple files from the project tree?

Answered

Hi Team, 

       I have files with custom extension. And syntax is xml. I have included multiple files into a single file like xml do using DOCTYPE and ENTITY. All files are placed in same folders. For UI, i used a TabbedPane with each tab for each file. its contents render in table. When click on files in the project tree,  i wish to use a single editor for all these files, as since i already have tabbed pane. Since all files physical files, even though i reuse editor instance,  EditorWindow create new editortab on top. Is it possible to reuse the previously created, editor for this scenario?

i seen in EditorWindow.java, BackedVirtualFile can give the same functionality. Is there any api available for creating BackedVirtualFile.

Thanks in advance

0
1 comment

AFAIU org.jetbrains.idea.devkit.testAssistant.vfs.TestDataGroupFileSystem and related from Plugin Devkit plugin (part of IntelliJ Community sources) solves the same task.

0

Please sign in to leave a comment.