Tabbed editor

I'm adding support for a custom language. I would like to make the editor tabbed, with the first tab being the default editor and the other ones customized, just like the web applications web.xml editor:
http://i.imgur.com/OZbLk.png

I can't find any example of this, is there some doc/sample somewhere ?

Regards,
Julien

0
Avatar
Permanently deleted user

Just what I needed, thanks !

(The answer is: just register a fileEditorProvider that will accept your file type for the additional editors, and the editors will be automatically tabbed)

0

The Link is broken. Would love to know how to build such an editor.

0

Could piece together some snippets and come to following solution. EditorPolicy must be com.intellij.openapi.fileEditor.FileEditorPolicy.PLACE_BEFORE_DEFAULT_EDITOR and Language-Class must have parent attribute of com.intellij.lang.xml.XMLLanguage

 

 

0

请先登录再写评论。