Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » ChangeRecorder: Ignore Notifications of Transient EStructuralFeatures(How to stop the ChangeRecorder from tracking changes to transient attributes and references in a model, yet still have EMF notifications.)
ChangeRecorder: Ignore Notifications of Transient EStructuralFeatures [message #631813] Fri, 08 October 2010 21:01 Go to next message
Andy Condon is currently offline Andy CondonFriend
Messages: 18
Registered: July 2009
Junior Member
Hello,

In my model I have certain EStructuralFeatures marked as transient. These pieces of the model are updated during runtime in my application rather than through my persistence mechanism, CDO. This works as expected and I only receive notifications through CDO about the non-transient attributes. However my views all leverage the fact that local EMF notifications are still generated, allowing the views to update automatically.

Now I want to use the EMF ChangeRecorder in my application. The ChangeRecorder is (not-surprisingly) tracking all changes, even those to the transient attributes. I'd like it to work like my persistence mechanism, only tracking the changes to the non-transient attributes. Is it possible to do this with the ChangeRecorder and still utilize EMF notifications in my views?

I'd like to use the ChangeRecoder to track user modifications in a way that is decoupled from CDO, but ignore data that is generated during runtime.

Thank you,

Andy

[Updated on: Fri, 08 October 2010 21:05]

Report message to a moderator

Re: ChangeRecorder: Ignore Notifications of Transient EStructuralFeatures [message #631816 is a reply to message #631813] Fri, 08 October 2010 21:08 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 30541
Registered: July 2009
Senior Member
Andy,

You can specialize the shouldRecord method as you see fit to filter
notifications that you don't want.


Andy Condon wrote:
> Hello,
>
> In my model I have certain EStructuralFeatures marked as transient.
> These pieces of the model are updated during runtime in my application
> rather than through my persistence mechanism, CDO. This works as
> expected and I only receive notifications through CDO about the
> non-transient attributes. However my views all leverage the fact that
> local EMF notifications are still generated, allowing the views to
> update automatically.
>
> Now I want to use the EMF ChangeRecorder in my application. The
> ChangeRecorder is (not-surprisingly) tracking all changes, even those
> to the transient attributes. I'd like it to work like my persistence
> mechanism, only tracking the changes to the non-transient attributes.
> Is it possible to do this with the ChangeRecorder and still utilize
> EMF notifications in my views?
>
> Thank you,
>
> Andy
Re: ChangeRecorder: Ignore Notifications of Transient EStructuralFeatures [message #631818 is a reply to message #631816] Fri, 08 October 2010 21:45 Go to previous message
Andy Condon is currently offline Andy CondonFriend
Messages: 18
Registered: July 2009
Junior Member
Excellent, thank you! Smile
Previous Topic:An EMF databinding problem
Next Topic:Issues with collectReachableObjectsOfType
Goto Forum:
  


Current Time: Mon Oct 14 18:32:41 GMT 2019

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

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

Back to the top