Author Topic: Decoration doesn't appear for enumeration  (Read 3613 times)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Decoration doesn't appear for enumeration
« on: March 31, 2012, 02:35:25 am »
Hi,

I have defined a shape script for a stereotype extending the Enumeration metaclass using DrawNativeShepe() in the main and a decoration.
But nothing is changed in the shape rendering when showing an instance in a diagram. Did anyone experience the same behavior? Is this a bug, or did I miss something??

Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Decoration doesn't appear for enumeration
« Reply #1 on: March 31, 2012, 02:59:43 am »
Not sure if that's the problem, but you need to extend not only a class but also an object so your stereotype applies to both (assuming you are creating a MDG).

q.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Decoration doesn't appear for enumeration
« Reply #2 on: March 31, 2012, 03:39:29 am »
Yup, I'm creating an MDG.
The stereotype in question currently extends the Enumeration metaclass.
I have added another extends relation to an Object metaclass, but nothing changed  :( ...
Thanks for the hint though.

Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Decoration doesn't appear for enumeration
« Reply #3 on: March 31, 2012, 04:05:59 am »
It might be a bug then. EA has a bag full of those...

q.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Decoration doesn't appear for enumeration
« Reply #4 on: March 31, 2012, 04:30:56 am »
Quote
It might be a bug then. EA has a bag full of those...

Oooooh yes I know ... It's hard to distinguish if its your fault or Sparx'  >:(

Günther
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

Paolo F Cantoni

  • EA Guru
  • *****
  • Posts: 8607
  • Karma: +257/-129
  • Inconsistently correct systems DON'T EXIST!
    • View Profile
Re: Decoration doesn't appear for enumeration
« Reply #5 on: April 01, 2012, 07:41:07 pm »
Quote
It might be a bug then. EA has a bag full of those...

q.
If you want to apply decoration the the Enumeration Class you have to disable some of the low-level MDG technologies (like the first three).

They seem to take over the rendering of Enumeration.

Once you figure out which one - you can decide you're in Catch-22...

Paolo
Inconsistently correct systems DON'T EXIST!
... Therefore, aim for consistency; in the expectation of achieving correctness....
-Semantica-
Helsinki Principle Rules!