How to implement simple graphics editor for custom file types?
已回答
I would like to implement simple graph editor with my own file type. It can be either binary or text (not decided yet, probably YAML), but it's text representation will not be visible. User will be allowed to manipulate graph primitives on screen, then save it to file.
I have already implemented simple file type, which draws something hardcoded.
Now, how to implement something like MVC?
What should I imlement/override first? Document? VirtualFile? FileDocumentManager?
Please mention just a sketch....
请先登录再写评论。
Create custom Editor via com.intellij.openapi.fileEditor.FileEditorProvider, see https://jb.gg/ipe?extensions=com.intellij.fileEditorProvider for samples