Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Edward Stow on March 25, 2009, 10:56:28 am
-
Hi
When constructing a domain model I prefer to hide attributes and operations.
Using Diagram -> Properties -> Elements -> Show Compartments and unchecked Attributes and Operations does not have any effect on classes in the diagram or new classes added to the diagram.
Is this the correct way to hide / show compartments.
(Using EA7.1 Trial on Wine)
--
Edward
-
AFAIK you cannot hide these two compartments, even when empty. Whether this is a throwback to UML or a 'defect' in EA is open to discussion.
[Emphasis added to avoid the kind of confusion that occurred below.]
-
They can be hidden. Not sure why it wouldn't be. It can also be set on a diagram object level (Ctrl+Shift+Y).
Note: That works with multiple select too.
-
I have just confirmed that the attribute compartment cannot be hidden on a Vista machine using the trial version.
Simon: Can you verify that you can hide the compartments.
I am not talking about hiding the attributes - this works as expected.
Ctl Shift Y - Feature Visibility dialog does not have an option to hide the attribute / operation **compartment**.
--
Edward
-
No problems for me (under Vista).
Could you please try creating a new model and seeing what happens then?
Edit: I just realized that maybe you are wanting to remove the line under the class name, not just hiding them. If that's the case you can't do it except by shrinking the height of the class.
-
Edit: I just realized that maybe you are wanting to remove the line under the class name, not just hiding them. If that's the case you can't do it except by shrinking the height of the class.
Thanks so its not possible to hide unwanted compartments in the symbol except by adjusting the size of the symbol. Can a default symbol be applied to a diagram?
In terminology familiar to me the boxes that make up the class symbol are called compartments and so I was expecting the options available at:
Diagram -> Properties -> Elements -> Show Compartments
to be able to hide the compartments.
--
Edward