Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Custom class [1..*] stereotype attribute saved as foo="/-1"
Custom class [1..*] stereotype attribute saved as foo="/-1" [message #579100] Thu, 01 February 2007 08:52
Thomas Maier is currently offline Thomas MaierFriend
Messages: 117
Registered: July 2009
Senior Member
Hi,

last year we made the transition from 1.x to 2.x. I thought I had done
everything but now I discovered that something is not saved correctly.
It worked fine with 1.x but does not work with 2.0. The details:

I have (among others) two classes defined in a profile, Dimension (with
two Integer properties width and height) and Bendpoint which has the one
Property bendpoints : Bendpoint[1..*]. When I saved files with 1.x I
had something like this:

<generalization xmi:id="_QJ5gUMJZEdqArMEYN_ynxQ" general="_P0w90MJZEdqArMEYN_ynxQ">
<eAnnotations xmi:id="_RqDrgMJZEdqArMEYN_ynxQ" source="appliedStereotypes">
<contents xmi:type="Janus_4:Janus__Bendpoints" xmi:id="_RqDrgcJZEdqArMEYN_ynxQ">
<bendpoints xmi:id="_kgRuIMJaEdqH7qsSo02lIQ" weight="0.5">
<sourceDimension xmi:id="_kgSVMMJaEdqH7qsSo02lIQ" width="145" height="-44"/>
<targetDimension xmi:id="_kgSVMcJaEdqH7qsSo02lIQ" width="-182" height="-80"/>
</bendpoints>
<bendpoints xmi:id="_RsAzUMJZEdqArMEYN_ynxQ" weight="0.5">
<sourceDimension xmi:id="_RsAzUcJZEdqArMEYN_ynxQ" width="268" height="-50"/>
<targetDimension xmi:id="_RsAzUsJZEdqArMEYN_ynxQ" width="-59" height="-86"/>
</bendpoints>
</contents>
</eAnnotations>
</generalization>

When I save now, with 2.0, I get

<generalization xmi:id="_Yp8rsLEgEduQQZSQkLuWiw" general="_W9P5ULEgEduQQZSQkLuWiw"/>
[...]
<Janus:Bendpoints xmi:id="_YqPmoLEgEduQQZSQkLuWiw" bendpoints="/-1" base_Relationship="_Yp8rsLEgEduQQZSQkLuWiw"/>

While I work in my editor everything is fine. I can add bendpoints to
relationships, I can change and remove them again. But they are not
saved. Is this something typical you know or should I provide code of
how I am modifying the model?

Regards, Thomas.
Previous Topic:Creating EMF project from xmi file
Next Topic:Delete a stereotyped element
Goto Forum:
  


Current Time: Fri Apr 19 19:40:37 GMT 2024

Powered by FUDForum. Page generated in 0.02855 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top