Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [CDO] feature value synchronization
[CDO] feature value synchronization [message #136320] Wed, 13 May 2009 11:46 Go to next message
Martynas  L is currently offline Martynas LFriend
Messages: 16
Registered: July 2009
Junior Member
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 12:04 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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 12:04 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
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: Tue Apr 23 17:58:13 GMT 2024

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

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

Back to the top