Skip to main content



      Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] feature value synchronization
[CDO] feature value synchronization [message #136320] Wed, 13 May 2009 07:46 Go to next message
Eclipse UserFriend
Hi,

I have an EMF feature. The feature value must be "synchronized" with
another non-EMF feature (e.g. simple java class field). The initial idea
was to override eGet, sSet methods to synchronize the values.
Unfortunately these methods are not called when committing/loading the cdo
object.

There are methods cdoInternalPreCommit and cdoInternalPostLoad, but in
another thread I've found that "its calling semantics are not officially
specified and they could change without notice."

Are there any suggestions how such synchronization can be achieved?

In generally what I need is a call to my method when the EMF feature value
is set/get.

Thanks
Re: [CDO] feature value synchronization [message #136339 is a reply to message #136320] Wed, 13 May 2009 08:04 Go to previous message
Eclipse UserFriend
Martynas,

CDO is supported in the EMF newsgroup where you also asked this question.
Please do not cross post to multiple newsgroups at the same time. This
could cause redundant effort.

Cheers
/Eike

----
http://thegordian.blogspot.com



Martynas schrieb:
> Hi,
>
> I have an EMF feature. The feature value must be "synchronized" with
> another non-EMF feature (e.g. simple java class field). The initial
> idea was to override eGet, sSet methods to synchronize the values.
> Unfortunately these methods are not called when committing/loading the
> cdo object.
>
> There are methods cdoInternalPreCommit and cdoInternalPostLoad, but in
> another thread I've found that "its calling semantics are not
> officially specified and they could change without notice."
>
> Are there any suggestions how such synchronization can be achieved?
>
> In generally what I need is a call to my method when the EMF feature
> value is set/get.
>
> Thanks
>
Re: [CDO] feature value synchronization [message #620943 is a reply to message #136320] Wed, 13 May 2009 08:04 Go to previous message
Eclipse UserFriend
Martynas,

CDO is supported in the EMF newsgroup where you also asked this question.
Please do not cross post to multiple newsgroups at the same time. This
could cause redundant effort.

Cheers
/Eike

----
http://thegordian.blogspot.com



Martynas schrieb:
> Hi,
>
> I have an EMF feature. The feature value must be "synchronized" with
> another non-EMF feature (e.g. simple java class field). The initial
> idea was to override eGet, sSet methods to synchronize the values.
> Unfortunately these methods are not called when committing/loading the
> cdo object.
>
> There are methods cdoInternalPreCommit and cdoInternalPostLoad, but in
> another thread I've found that "its calling semantics are not
> officially specified and they could change without notice."
>
> Are there any suggestions how such synchronization can be achieved?
>
> In generally what I need is a call to my method when the EMF feature
> value is set/get.
>
> Thanks
>
Previous Topic:[CDO] feature value synchronization
Next Topic:[EMF Compare] Pb comparing a SysML model using SVN
Goto Forum:
  


Current Time: Sun Jul 27 15:52:13 EDT 2025

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

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

Back to the top