Sparx Systems Forum

Enterprise Architect => General Board => Topic started by: sl@sh on February 09, 2007, 07:06:00 am

Title: Showing contained class objects
Post by: sl@sh on February 09, 2007, 07:06:00 am
Hello,

While trying to create an overview I created a couple of structural diagrams showing the packages of the system, subsystems, and classes contained therein.

In one of the lower level packages, the sole contained class is shown like an attribute in the package image. I would very much like the other packages within the other diagrams to also show the classes they contain, but cannot find an option, either on the package itself or the diagram.

Where do I find this?

If you don't know what I mean, please check the diagram System Model -> Design Model -> Design Model within the EAExample project. All the packages show the classes contained within.
Title: Re: Showing contained class objects
Post by: peter.zrnko on February 10, 2007, 09:22:03 pm
Go to Diagram Properties - Visible Compartments and check
"Package contents".
Title: Re: Showing contained class objects
Post by: Eve on February 11, 2007, 01:19:23 pm
Also, once you have that enabled for your diagram there is a model option that allows for elements shown on diagrams in that package to be displayed.

Look at Tools | Options | Diagram | Behavior | Show Linked Items in Package.
Title: Re: Showing contained class objects
Post by: sl@sh on February 12, 2007, 06:11:25 am
@peter: thanks for the help (must have been blind....)

@simonm: I did check this option. Unchecking or rechecking it doesn't appear to make a difference though. What should it do?
Title: Re: Showing contained class objects
Post by: «Midnight» on February 12, 2007, 12:27:20 pm
You might have to reload the diagram or even the project. Try changing the setting, then exiting and restarting EA.

[EDIT: The above relates to Simon's suggestion.]
Title: Re: Showing contained class objects
Post by: Eve on February 12, 2007, 01:09:45 pm
The option that I pointed out only has an effect when there is some package already diplaying the package contents.  It wasn't directly relevant to your problem, just a related point.