The overall concept of the class diagrams generated from the plugin is that each diagram represents one package. So first you must create a class diagram representing one of your packages. Once you have that, you can add your other packages to that diagram.
- Open the .ucd file for the existing diagram you have so far in Eclipse.
- Make sure you're in "Selection mode" in the toolbar.
- Make sure nothing is selected*. Then right-click on empty space in the diagram.
- Choose Insert->Package and pick the package you want to add to the diagram.
- A box will be added that represents that package. Select it by left-clicking on it.
- Then right-click and choose "Package Elements...".
- Check the boxes for the classes you want to show explicitly in the diagram.
- The classes should now be in the package box.
- Then you can select nothing* again, right-click and choose "Show All Associations" or "Show all Inheritances" if you want.
- When you have picked all the options you want, select nothing*, right-click and choose "Layout" to make it arrange things nicely. If you don't like the layout it comes up with, you can repeat the same action and it seems to cycle through a few layout options.
- You can save it as an image by selecting nothing*, right-clicking and choosing "Export as image" and following the wizard.
Great post! Very useful!
ReplyDeletethank you - helped a lot
ReplyDeletegoruntulu show
ReplyDeleteücretli
4PKN04