Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Problem with the DawnAcoreDiagramEditor Class(Could not make the DawnAcoreDiagramEditor synchronous, because there is no setInputWithNotify method in the class)
Problem with the DawnAcoreDiagramEditor Class [message #936066] Sun, 07 October 2012 16:42
UmaShankar Subramani is currently offline UmaShankar SubramaniFriend
Messages: 194
Registered: December 2011
Location: SWEDEN
Senior Member
Hi,

I was trying to make the DawnAcoreEditor to work synchronously. I succeeded in that, by inserting in the following piece into the setInputWithNotify method of the class DawnAcoreEditor.

transaction.options().setStaleReferencePolicy(CDOStaleReferencePolicy.PROXY);
transaction.options().setInvalidationPolicy(CDOInvalidationPolicy.RELAXED);
transaction.options().addChangeSubscriptionPolicy(CDOAdapterPolicy.ALL);
transaction.addTransactionHandler(new CDOPostEventTransactionHandler.Default()
{
@Override
protected void modifiedObject(CDOTransaction tx, CDOObject object, Notification msg)
{
try
{
transaction.commit();
}
catch (Exception e)
{
System.out.println("Commit problem. Conflicts: " + transaction.getConflicts()); //$NON-NLS-1$
transaction.rollback();
}
}
});

But now, I need to do the same for DawnAcoreDiagramEditor. But, I could not do so. Because, ther is no setInputWithNotify method in the class DawnAcoreDiagramEditor.
Could anyone help me?
Previous Topic:Help with upgrade
Next Topic:Writing files to be imported as EMF models...
Goto Forum:
  


Current Time: Fri Apr 19 09:21:56 GMT 2024

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

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

Back to the top