Book a Demo

Author Topic: Hide Attribute Compartments in Domain Model  (Read 3883 times)

Edward Stow

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Hide Attribute Compartments in Domain Model
« 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



«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Hide Attribute Compartments in Domain Model
« Reply #1 on: March 25, 2009, 10:00:16 pm »
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.]
« Last Edit: March 26, 2009, 09:19:39 pm by Midnight »
No, you can't have it!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: Hide Attribute Compartments in Domain Model
« Reply #2 on: March 26, 2009, 08:36:50 am »
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.

Edward Stow

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Hide Attribute Compartments in Domain Model
« Reply #3 on: March 26, 2009, 10:23:27 am »
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

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8090
  • Karma: +118/-20
    • View Profile
Re: Hide Attribute Compartments in Domain Model
« Reply #4 on: March 26, 2009, 11:20:23 am »
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.
« Last Edit: March 26, 2009, 11:22:20 am by simonm »

Edward Stow

  • EA Novice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Hide Attribute Compartments in Domain Model
« Reply #5 on: March 26, 2009, 11:40:20 am »
Quote
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

« Last Edit: March 26, 2009, 11:41:17 am by edwardstow »