Reuse XML/JSON panels in tool window
Hi
I want to embed tabs with XML/JSON formatted text into my tool window.
Is there any way to reuse XML/JSON editor panel in read only mode? Or some other intellij component? I found snippet with virtual file opened in editor but as i understand it will be opened outside of my tool window.
请先登录再写评论。
You can use EditorFactory to create Editor instances, which you can embed in any custom UI. Or you can use EditorTextField component (that wraps Editor).