Book a Demo

Author Topic: How to control visibility of attributes  (Read 2605 times)

Farrukh Najmi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
How to control visibility of attributes
« on: November 05, 2008, 12:40:58 am »
In my class diagram I would like to have a project wide default of not showing any attributes. I would then like to show specific attributes on specific classes in the diagram. How can I do this? TIA for your help.

Simon C

  • EA Administrator
  • EA Novice
  • *****
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: How to control visibility of attributes
« Reply #1 on: November 05, 2008, 10:20:42 am »
You can achieve what you're after by creating a template package to control the default appearance of Class Elements.
See: http://www.sparxsystems.com/uml_tool_guide/what_is_uml_modeling/using_element_templates.html

In the Template package you will want to create a Class and use the Feature Visibility options to hide all Operations and Attributes.
See: http://www.sparxsystems.com/uml_tool_guide/what_is_uml_modeling/setfeaturevisibility.html

After this all newly created classes will use these settings as default, allowing you to show specific Class attributes (via the Feature Visibility options) as desired.

Also note, the "Diagram | Properties | Elements | Attributes/Operations" options will need to be ticked for any Attributes/Operations to be displayed.