Problem with the DawnAcoreDiagramEditor Class [message #936066] |
Sun, 07 October 2012 16:42 |
UmaShankar Subramani 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?
|
|
|
Powered by
FUDForum. Page generated in 0.03103 seconds