Author Topic: _image attribute ignored for UseCaseLink  (Read 5017 times)

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
_image attribute ignored for UseCaseLink
« on: June 08, 2011, 05:59:11 am »
Hi,

In my profile I defined a stereotype extending the "UseCaseLink" connector. Additionally I defined a custom shape script to visualize that connector. Unfortunately this shape script is not used to render the connector. When using the same shape script for an association it seems to work.

I'm using EA 9 Build 906. Am I doing something wrong or can custom shape scripts only be used for associations?

Thanks,
Jakob
« Last Edit: June 09, 2011, 01:11:02 am by jakob »

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: _image attribute ignored for UseCaseLink
« Reply #1 on: June 09, 2011, 12:21:56 am »
I'm facing the same problem with stereotypes extending the "Realization" metaclass...

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: _image attribute ignored for UseCaseLink
« Reply #2 on: June 09, 2011, 01:44:50 am »
I think the problem is that the stereotypes extending the "Realization" and "UseCaseLink" of my profile are not loaded properly when my MDGTechnology is initialized.

For testing purpose I defined a stereotype in my profile that extends the association and the realization metaclass. This is what EA generates after exporting the profile:

Code: [Select]
<Stereotype name="MyStereoype" notes="">
      <Image type="EAShapeScript 1.0" xmlns:dt="urn:schemas-microsoft-com:datatypes" dt:dt="bin.base64">UEsDBBQAAAAIAIZZyD7w0S4sogAAAEABAAAHABEAc3RyLmRhdFVUDQAHI1nvTSNZ700jWe9N
XY+xDsIwEEPfChL/gJhAYoAZsTDDRxS1QKWWVk0KQqj/jnMpFBhy8cX2neO4kFCTMaUUyrkK
PZkwZiRc4UyRCt3Z4mlopd70CifsKcyXqfM81GXMmamrjEmFFx9HqdebuSqpVix1BvY9KbJr
cb+KzmrMFFMfbENqW3dyefOW7KU46q34+k+t9GG+7/MlQrnuk2pIP+SMe/53eaGGs+ULUzte
UEsBAhcLFAAAAAgAhlnIPvDRLiyiAAAAQAEAAAcACQAAAAAAAAAAAACAAAAAAHN0ci5kYXRV
VAUAByNZ701QSwUGAAAAAAEAAQA+AAAA2AAAAAAA</Image>
      <AppliesTo>
            <Apply type="Realisation">
                  <Property name="direction" value="Source -&gt; Destination"/>
            </Apply>
            <Apply type="Association">
                  <Property name="direction" value="Source -&gt; Destination"/>
            </Apply>
      </AppliesTo>
</Stereotype>

When using the profile the stereotype seems to be only available for association but not for realization connectors.

Am I missing something?

Thanks a lot!

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: _image attribute ignored for UseCaseLink
« Reply #3 on: June 09, 2011, 02:23:20 pm »
Smells like a bug. Please report through the normal channels. Thanks.
The Sparx Team
[email protected]

rainerf

  • EA Novice
  • *
  • Posts: 10
  • Karma: +0/-0
    • View Profile
Re: _image attribute ignored for UseCaseLink
« Reply #4 on: June 21, 2011, 12:59:39 am »
I had the same problem with Realizations, back then I noted that EA has different types of spelling Realization, ie. in the XML you posted it is written with an "s" instead of a "z" as in the Metamodel. Maybe this has something to do with it, though it would not account for your problem with the UseCaseLink.

jakob

  • EA User
  • **
  • Posts: 39
  • Karma: +0/-0
    • View Profile
Re: _image attribute ignored for UseCaseLink
« Reply #5 on: June 21, 2011, 01:57:05 am »
Yeah! I recognized the same, too. I tried to modify the XML manually but it didn't help.

I reported a bug which has been accepted and on which Sparx is currently working on. So let's hope they fix it soon!

Jakob