hallvard / plantuml

Embed UML diagrams in files and view them in Eclipse
http://plantuml.sourceforge.net/
209 stars 57 forks source link

Generate diagram for a whole project #18

Closed arnaudroques closed 6 years ago

arnaudroques commented 7 years ago

It would be nice if the plugin could generate a diagram for a whole Eclipse project. (related to http://plantuml.sourceforge.net/qa/?qa=5537/how-can-nested-classes-interfaces-be-represented )

hallvard commented 7 years ago

I've pushed some initial code for this. I've added a new view (PlantUML Project Class Diagram) that is populated from what you drag into it from the Package or Project Explorers, not what's in the active editor. The view collects all types within the nodes you drag'n drop and renders a diagram with them (and related classes). We should now discuss more detailed behaviour, including what options could/should be added and what defaults to use.

krooq commented 7 years ago

First thing I noticed when using this was that packages are not implemented. It would be nice to have packages as an option. Beautiful plugin btw, I love it!

hallvard commented 7 years ago

You mean wrap the classes in a diagram in package rectangles/folders? When you say "option", how would you prefer providing it, as a preference in the general preference dialog or elsewhere, e.g. dialog activated from the view itself?

krooq commented 7 years ago

Yep, exactly as you can do with plant uml. I find that providing packages in a UML diagram can help to quickly show the structure of the diagram.

General preference dialog in eclipse would be preferable I think. Most people know to look there to change settings.

hallvard commented 7 years ago

Should be in the next release, this month. You will be able to toggle package generation and select the visual style.