Comparing two cross-document references versions [message #429595] |
Mon, 27 April 2009 08:28 |
Eclipse User |
|
|
|
Originally posted by: bmoros.um.es
Hi all,
Given two resources R1 and R2 in the same ResourceSet, and the class A from
R1 which references to class B from R2, the generated editors behave in a
way that when the model in R2 changes then R1 is refreshed and all the
cross-document references are resolved again. When the resolve notification
arrives to an A object I would like to compare the B objects referenced
before and after the resolving process to know if something has changed in
between. I have tried various solutions (for instance, by comparing the hash
codes of the linked EObjects, by comparing the notification oldValue and
newValue) but I haven
|
|
|
Re: Comparing two cross-document references versions [message #429598 is a reply to message #429595] |
Mon, 27 April 2009 10:33 |
Ed Merks Messages: 33145 Registered: July 2009 |
Senior Member |
|
|
Begoña,
Comments below.
Begoña Moros wrote:
> Hi all,
>
> Given two resources R1 and R2 in the same ResourceSet, and the class A from
> R1 which references to class B from R2, the generated editors behave in a
> way that when the model in R2 changes then R1 is refreshed and all the
> cross-document references are resolved again. When the resolve notification
> arrives to an A object I would like to compare the B objects referenced
> before and after the resolving process to know if something has changed in
> between. I have tried various solutions (for instance, by comparing the hash
> codes of the linked EObjects, by comparing the notification oldValue and
> newValue) but I haven´t able to revolve it. Is there anybody who could give
> me a hint?
>
When you have a proxy, the only information you generally can expect to
have about it is the eProxyURI. So you'll have the proxy in the
oldValue and the resolved result in the newValue, but I don't know what
useful thing you could do in terms of comparison between those two
things. Mind you, an unloaded object will still be fully populated with
the data it held before...
> Thanks in advance.
>
> Best regards,
> Begoña
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Re: Comparing two cross-document references versions [message #429602 is a reply to message #429598] |
Mon, 27 April 2009 11:36 |
Eclipse User |
|
|
|
Originally posted by: bmoros.um.es
Hi Ed,
the useful thing I need to know is if the linked element has changed to mark
the traceability relationship as "suspicious". Imagine that I am linking a
software requirement (for instance, "The system shall record the clients")
to a software artifact ("Client class" in a class diagram). I would like to
know if the Client class has change to mark that the requirement could be
inconsistent with respect to the linked class.
Regards,
Bego
|
|
|
|
Powered by
FUDForum. Page generated in 0.03329 seconds