Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Comparing two cross-document references versions
Comparing two cross-document references versions [message #429595] Mon, 27 April 2009 08:28 Go to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
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 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: Comparing two cross-document references versions [message #429606 is a reply to message #429602] Mon, 27 April 2009 13:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020108050701090907000505
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Bego


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:[CDO]Export resource problem
Next Topic:Why emf.Resource doesn't extend IResource ?
Goto Forum:
  


Current Time: Fri Apr 26 19:45:26 GMT 2024

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

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

Back to the top