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.

0
1 comment

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).

0

Please sign in to leave a comment.