Author Topic: Usage of Supported Attributes  (Read 4084 times)

semmel

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Future is history being too late
    • View Profile
Usage of Supported Attributes
« on: October 09, 2007, 07:27:35 am »
Hi,
I am trying to use the Metatype Attribute _defaultDiagramType
with the Type = String
and the initial Value = Logical

its not working what ever I try.

Has someone experience in using these Attributes in a Profile and can give me a hint ?

regards
Martin

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8085
  • Karma: +118/-20
    • View Profile
Re: Usage of Supported Attributes
« Reply #1 on: October 09, 2007, 12:49:34 pm »
Make sure you've added the attribute to the metaclass, not the stereotype.  Then it won't create automatically unless you have also set _makeComposite as true.

semmel

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Future is history being too late
    • View Profile
Re: Usage of Supported Attributes
« Reply #2 on: October 09, 2007, 09:42:25 pm »
That's what I already did, but nevertheless I get some strande behavior. If I only added _makeComposite it works fine creating a diagram, but its a composite diagram. If I additionally add the _defaultDiagramType, no diagram is created any longer. Only the composite flag in the created element is set. ?

semmel

  • EA Novice
  • *
  • Posts: 12
  • Karma: +0/-0
  • Future is history being too late
    • View Profile
Re: Usage of Supported Attributes
« Reply #3 on: October 10, 2007, 07:01:19 am »
The DateTime type is also not functioning when used in a stereotype Profile. But this is functioning when just creating a new Tagged value via Settings/UML/TaggedValueTypes dialog.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Usage of Supported Attributes
« Reply #4 on: October 10, 2007, 07:07:24 am »
Martin,

Please raise formal bug reports on each of these defects, just as you've explained them.

Search my recent posts for a best practice we use to issue bug reports or feature requests and keep both Sparx and the user community in the loop.

David
No, you can't have it!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Usage of Supported Attributes
« Reply #5 on: October 10, 2007, 01:50:22 pm »
Martin, when reporting your bug to Sparx, please attach either a screenshot of your profile diagram or an XMI export of your profile package. These will help to reproduce the problem. Cheers :)
The Sparx Team
[email protected]