Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: g.makulik on March 31, 2012, 02:35:25 am

Title: Decoration doesn't appear for enumeration
Post by: g.makulik 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
Title: Re: Decoration doesn't appear for enumeration
Post by: qwerty 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.
Title: Re: Decoration doesn't appear for enumeration
Post by: g.makulik 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
Title: Re: Decoration doesn't appear for enumeration
Post by: qwerty on March 31, 2012, 04:05:59 am
It might be a bug then. EA has a bag full of those...

q.
Title: Re: Decoration doesn't appear for enumeration
Post by: g.makulik 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
Title: Re: Decoration doesn't appear for enumeration
Post by: Paolo F Cantoni 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