How to create multiple tabs under the editing part of the opened file.
已回答
I want to create more than 3 multiple tabs under the editing part of the opened file.
Like this
.
Now EditorProvider class
class MyFileEditorProvider : AsyncFileEditorProvider, DumbAware {
override fun createEditorAsync(@NotNull project: Project, @NotNull virtualFile: VirtualFile): Builder {
return object : Builder() {
override fun build(): FileEditor {
val values = createValue()
return MyFileEditor(MyComponent("01", "01", values).toComponent())
}
}
}
...
}
请先登录再写评论。
Hi,
As far as I know, you have to implement as many
FileEditorProvider
s as editor tabs you want to see under the editor.Sorry, I forgot to mention toComponent.
I got it working by doing this.