Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Event to notify object has become dirty
[CDO] Event to notify object has become dirty [message #1007873] Thu, 07 February 2013 15:37 Go to previous message
Jack Lechner is currently offline Jack Lechner
Messages: 8
Registered: December 2012
Junior Member
Hi!

I'm currently using a listener attached the cdoView of my object that updates some objects when the cdoState of my object changes. I receive CDOViewInvalidationEvents for when a passive update makes my object conflicted and CDOTransactionFinishedEvents for when the object is clean after a successful commit. Is there an event I can use to determine that it has become dirty?

Thank you in advance!

Edit: Found a better solution by using this:

cdoView.addObjectHandler(new CDOObjectHandler() {
	@Override
	public void objectStateChanged(CDOView view, CDOObject object,
			CDOState oldState, CDOState newState) {
		System.out.println("Object: " + object.toString()
				+ " transitioned to " + newState);
	}
});

[Updated on: Thu, 07 February 2013 16:08]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic:Automated Testcase generation from ecore model
Next Topic:Proxy Resolution among Resources
Goto Forum:
  


Current Time: Wed May 22 22:24:35 EDT 2013

Powered by FUDForum. Page generated in 0.01640 seconds