SequencePlugin
SequencePlugin copied to clipboard
Document automation
Hi, first of all: You did an awesome job. If every developer on this planet contributed work as great as yours, we would be flying around in space ships already.
Anyways, I would like to automate sequence diagram generation. Is there some documentation available, or can it be written, to show how to execute the plugin not using mouse/keyboard, but using code? e.g. using https://plugins.jetbrains.com/plugin/7282-liveplugin?
It would be really great, if I could write a script, which opens 100+ files, generates the sequence diagram, exports them to puml, and then copies the generated puml files to our generated documentation. Otherwise, a very poor individual will have to do this manually every now and then, leading to high delay between code change and documentation updates.
I think it is not good idea to generate form files. The point is the generator need an entry point, a method, from start. It hard to imagine how many diagram will generated for every method from every files, and those method call each other..., it looks like a web.
Any way.
you can get a service, and call showSequence
to generate diagram.
SequenceService plugin = project.getService(SequenceService.class);
plugin.showSequence(psiMethod);
You can give a try.