Problem when using GetValue [message #1218486] |
Fri, 29 November 2013 04:42  |
Eclipse User |
|
|
|
Hi, I'm using EMFTVM but I don't think that's related to this issue.
I am using getValue() to get the value of different stereotypes' attributes and I'm getting different return values on different transformations, let me show you:
On transformation 'A' I get stuff like this:
Sequence{10e5a71:Profile!Action}
While on transformation 'B' I get stuff like this:
Sequence{Map Elements:View, Incidents:View, Information View:View, Snapshots:View}
The stereotype's attribute in both cases is a Sequence pointing to other stereotyped elements, and as you can see in the transformation 'A' I'm getting returned the stereotypeApplication of the element the value points to, while in transformation 'B' I'm getting a Stereotype, rather than the stereotype application (or so I think).
So why is this different?
The only thing I'm doing different in these transformations (I think) is that in one I have the profile as an input model, and in the other one I do not, I really don't know what else could it be and I don't really understand why this would make it different, is there any other reason this could be happening? Because as it is right now I would rather not import the profile, but if I have to I guess I will.
Thanks in advance, let me know if there's anything else you need to know about the transformations.
Regards,
Javier
|
|
|
|
Re: Problem when using GetValue [message #1219118 is a reply to message #1219009] |
Mon, 02 December 2013 02:34  |
Eclipse User |
|
|
|
I'm using EMFTVM in both metamodels so I'm not sure if they both should be the same. Also I was getting an exception when I tried to use this data in the same way but I did find a workaround so I guess that it's ok for now, I can't really understand where the problem comes from or why does it happen but at least I made it work differently.
|
|
|
Powered by
FUDForum. Page generated in 0.03205 seconds