Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document automation #149

Open
ambition-consulting opened this issue Feb 22, 2023 · 2 comments
Open

Document automation #149

ambition-consulting opened this issue Feb 22, 2023 · 2 comments

Comments

@ambition-consulting
Copy link

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.

@Vanco
Copy link
Owner

Vanco commented Mar 3, 2023

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.

@Vanco
Copy link
Owner

Vanco commented Mar 3, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants