Book a Demo

Author Topic: More class attributes of the same name  (Read 3358 times)

bednarik

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
More class attributes of the same name
« on: November 09, 2004, 06:08:38 am »
If we several times drag and drop an attribute from a class in the Project View to another class in a diagram, we will have a class with several attributes of the same name. The diagram shows only one of them, but the Class Attributes dialog shows all of them. Of course it is incorrect to have a class with several attributes of the same name, but on the other hand this is very powerful behavior of the EA.

But also it can bring errors to our model.

My suggestion is to change EA behavior and when adding another attribute of existing name change its name with pasting an implicit suffix, for example a number.

Example:
1, Class A has no attribute.
2, Class B has an attribute Attr.
3, We drag and drop this attribute on Class A.
4, Class A has an attribute Attr.
5, We repeat step 3,
6, Class A has attributes Attr and Attr_1,
7, We repeat step 3,
8, Class A has attributes Attr, Attr_1 and Attr_2.
9, etc.