Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2015-09-25 10:20:22 +0000
committerEike Stepper2015-09-25 10:20:22 +0000
commit196eb7b8b72e7ea56999f3b1a813a0ce2f6886c2 (patch)
tree355db400690f04747d8d89a95f7937b233d78f38 /plugins/org.eclipse.emf.cdo.explorer
parent4236ed99a4915943d3958a5aae1e5bfd6dbf2bb4 (diff)
downloadcdo-196eb7b8b72e7ea56999f3b1a813a0ce2f6886c2.tar.gz
cdo-196eb7b8b72e7ea56999f3b1a813a0ce2f6886c2.tar.xz
cdo-196eb7b8b72e7ea56999f3b1a813a0ce2f6886c2.zip
[458349] Consolidate UI - Better handling of unconnectable repositories
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=458349
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer')
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/checkouts/CDOCheckoutImpl.java37
1 files changed, 36 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/checkouts/CDOCheckoutImpl.java b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/checkouts/CDOCheckoutImpl.java
index b086a009ef..8268176b59 100644
--- a/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/checkouts/CDOCheckoutImpl.java
+++ b/plugins/org.eclipse.emf.cdo.explorer/src/org/eclipse/emf/cdo/internal/explorer/checkouts/CDOCheckoutImpl.java
@@ -632,7 +632,42 @@ public abstract class CDOCheckoutImpl extends AbstractElement implements CDOChec
CDOBranch branch = view.getBranch();
CDOBranchPoint head = branch.getHead();
- return session.openTransaction(head, resourceSet);
+
+ final CDOTransaction transaction = session.openTransaction(head, resourceSet);
+ // transaction.addTransactionHandler(new CDODefaultTransactionHandler1()
+ // {
+ // private Job commitJob = new Job("Commit")
+ // {
+ // @Override
+ // protected IStatus run(IProgressMonitor monitor)
+ // {
+ // try
+ // {
+ // synchronized (transaction)
+ // {
+ // if (transaction.isDirty())
+ // {
+ // transaction.commit();
+ // }
+ // }
+ // }
+ // catch (Throwable ex)
+ // {
+ // ex.printStackTrace();
+ // }
+ //
+ // return Status.OK_STATUS;
+ // }
+ // };
+ //
+ // @Override
+ // public void modifyingObject(CDOTransaction transaction, CDOObject object, CDOFeatureDelta featureChange)
+ // {
+ // commitJob.schedule(200);
+ // }
+ // });
+
+ return transaction;
}
protected CDOView configureView(final CDOView view)

Back to the top