Book a Demo

Author Topic: Component Attribute - Turning off {bag} display  (Read 4347 times)

Angelo Gountis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Component Attribute - Turning off {bag} display
« on: February 23, 2012, 03:24:02 am »
Hello All,

I'm a new user of EA so please forgive me if this is obvious.

We have recently migrated from IBM Rational 7.5.5.
In many of our class diagrams, our components have attributes that are labeled as {bag}

I've been able to determine that this is related to the type of collection that EA is defaulting to for this object.

The main question is, how can I get EA to not display this information?

Thanks for your time,
Angelo

OpenIT Solutions

  • EA User
  • **
  • Posts: 555
  • Karma: +9/-1
    • View Profile
Re: Component Attribute - Turning off {bag} displa
« Reply #1 on: February 23, 2012, 03:46:38 am »
Double click on the diagram (or right mouse click and select Properties). On the Diagram properties sheet have a look under the Elements and Features tabs and disable as required - i don't know specifically which to disable as i'm not sure what {bag} is in the context...

Angelo Gountis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Component Attribute - Turning off {bag} displa
« Reply #2 on: February 23, 2012, 04:47:16 am »
Thanks for the quick reply.

I tried this and could not seem to find a combination that would fix this.

I created steps to replicate what I am seeing in hopes that it would help.  (Please not, if your settings are different from mine, we may still not be seeing the same thing.  I should add, in case it is relevant, I am using the Ultimate version of EA.)

Create a Class Diagram.
Add a Class, call it TestBag
View Properties of TestBag
Create 3 new Attributes, call them Test1, Test2, Test3
Select Test1 and click on Detail.
Under Detail, in the Multiplicty section, click 'Allow Duplicates'
In the Class (on the diagram), the Test1 Attribute now has {bag} next to it.

So, it seems what I'd like to do is Hide the attribute multiplicity.
(This seems to relate to code generation but I'm not sure.)

Any suggestions?

Thanks much,
Angelo

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Component Attribute - Turning off
« Reply #3 on: February 23, 2012, 05:19:29 am »
There are some quirks in migrating from RR. This multiplicity seems to be added (and a lot of other stuff like isLeaf or isRoot) which confuses EA. A simple way to get rid of it is to edit the XMI and remove all the lines containing the multiplicity with a good editor (e.g. notepad++).

q.
« Last Edit: February 23, 2012, 05:19:55 am by qwerty »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Component Attribute - Turning off {bag} displa
« Reply #4 on: February 23, 2012, 09:37:11 am »
Elements page | Show Element Property String
Features page | Show Property String
Connectors page | Show Connector Property String

It appears to be related to a differing default between RR and EA (at least I assume RR is capable of showing the correct labels)

Angelo Gountis

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Component Attribute - Turning off {bag} displa
« Reply #5 on: February 23, 2012, 10:34:12 am »
Thanks everyone for your responses.

Simon, that resolved the issue.  Thanks!

ag