Book a Demo

Author Topic: Setting Run State for a Collection Type  (Read 2499 times)

Peter Kelley

  • EA User
  • **
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Setting Run State for a Collection Type
« on: August 28, 2012, 11:41:05 am »
I have a class with a property that can have 1 to many values taken from an enumeration. How do I best define it so I can set the run state of an instance of that class?

At the moment I have the type of the property set to the enumeration and in the multiplicity section I have lower bound 1 and upper bound n. I also have the Attribute is a collection box ticked.

When I go to add a value by setting the run state I get a simple text box in which I can type anything. The best I can do is retype the values from the enumeration separated by commas. I was hoping for something with a bit better type checking.

On a related front when I drop the instance on a diagram the width of the box can be no smaller than the long list of attribute values assigned to the property which is somewhat annoying. A vertical arrangement or the ability to wrap would be preferred.
Peter Kelley

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Setting Run State for a Collection Type
« Reply #1 on: August 31, 2012, 06:11:54 pm »
I'm afraid you have to live with what you found and described. However, you might submit a feature request. It's a good idea to start a thread in the suggestions board to get support from other users.

q.