Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-02-20 07:02:29 +0000
committerEike Stepper2010-02-20 07:02:29 +0000
commit29b229375fcfe17122e8a11d4058cbb24c291d58 (patch)
tree356f014e0d4e6e88f9996cde9142349f892a81fb
parent465351ae2728905c6966d2bca16e7f21e6962c15 (diff)
downloadcdo-29b229375fcfe17122e8a11d4058cbb24c291d58.tar.gz
cdo-29b229375fcfe17122e8a11d4058cbb24c291d58.tar.xz
cdo-29b229375fcfe17122e8a11d4058cbb24c291d58.zip
[256936] Support for Offline Mode
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256936
-rw-r--r--plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java156
1 files changed, 0 insertions, 156 deletions
diff --git a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
index 3547421953..4ebf5fc46b 100644
--- a/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
+++ b/plugins/org.eclipse.emf.cdo/src/org/eclipse/emf/internal/cdo/session/CDOSessionImpl.java
@@ -650,162 +650,6 @@ public abstract class CDOSessionImpl extends Container<CDOView> implements Inter
getBranchManager().handleBranchCreated(branch);
}
- // /**
- // * @since 2.0
- // */
- // @Deprecated
- // public void handleSyncResponse(CDOBranchPoint branchPoint, Collection<CDOPackageUnit> newPackageUnits,
- // Set<CDOIDAndVersion> dirtyOIDs, Collection<CDOID> detachedObjects)
- // {
- // handleCommitNotification___OLD(branchPoint, newPackageUnits, dirtyOIDs, detachedObjects, null, null, true, false);
- // }
- //
- // @Deprecated
- // private void handleCommitNotification___OLD(CDOBranchPoint branchPoint,
- // final Collection<CDOPackageUnit> newPackageUnits, Set<CDOIDAndVersion> dirtyOIDs,
- // final Collection<CDOID> detachedObjects, final Collection<CDORevisionDelta> deltas, InternalCDOView excludedView,
- // final boolean reviseAndInvalidate, final boolean async)
- // {
- // final CDOBranch branch = branchPoint.getBranch();
- // final long timeStamp = branchPoint.getTimeStamp();
- //
- // try
- // {
- // synchronized (invalidationLock)
- // {
- // if (reviseAndInvalidate)
- // {
- // reviseRevisions(branchPoint, dirtyOIDs, detachedObjects, excludedView);
- // }
- //
- // final Set<CDOIDAndVersion> finalDirtyOIDs = Collections.unmodifiableSet(dirtyOIDs);
- // final Collection<CDOID> finalDetachedObjects = Collections.unmodifiableCollection(detachedObjects);
- // final boolean skipChangeSubscription = (deltas == null || deltas.size() <= 0)
- // && (detachedObjects == null || detachedObjects.size() <= 0);
- //
- // for (final InternalCDOView view : getViews())
- // {
- // if (view != excludedView && view.getBranch().equals(branch))
- // {
- // final Runnable runnable = new Runnable()
- // {
- // public void run()
- // {
- // try
- // {
- // // Set<CDOObject> conflicts = null;
- // // if (reviseAndInvalidate)
- // // {
- // // conflicts = view.handleInvalidation(timeStamp, finalDirtyOIDs, finalDetachedObjects, async);
- // // }
- // //
- // // if (!skipChangeSubscription)
- // // {
- // // view.handleChangeSubscription(deltas, detachedObjects, async);
- // // }
- // //
- // // if (conflicts != null)
- // // {
- // // ((InternalCDOTransaction)view).handleConflicts(conflicts);
- // // }
- // //
- // // view.fireAdaptersNotifiedEvent(timeStamp);
- // }
- // catch (RuntimeException ex)
- // {
- // if (!async)
- // {
- // throw ex;
- // }
- //
- // if (view.isActive())
- // {
- // OM.LOG.error(ex);
- // }
- // else
- // {
- // OM.LOG.info(Messages.getString("CDOSessionImpl.1")); //$NON-NLS-1$
- // }
- // }
- // }
- // };
- //
- // if (async)
- // {
- // QueueRunner runner = getInvalidationRunner();
- // runner.addWork(new Runnable()
- // {
- // public void run()
- // {
- // try
- // {
- // invalidationRunnerActive.set(true);
- // runnable.run();
- // }
- // finally
- // {
- // invalidationRunnerActive.set(false);
- // }
- // }
- // });
- // }
- // else
- // {
- // runnable.run();
- // }
- // }
- // }
- // }
- // }
- // catch (RuntimeException ex)
- // {
- // if (!async)
- // {
- // throw ex;
- // }
- //
- // if (isActive())
- // {
- // OM.LOG.error(ex);
- // }
- // else
- // {
- // OM.LOG.info(Messages.getString("CDOSessionImpl.2")); //$NON-NLS-1$
- // }
- // }
- //
- // setLastUpdateTime(timeStamp);
- // throw new UnsupportedOperationException();
- // // fireInvalidationEvent(branchPoint, newPackageUnits, dirtyOIDs, detachedObjects, excludedView);
- // }
- //
- // @Deprecated
- // private void reviseRevisions(CDOBranchPoint branchPoint, Set<CDOIDAndVersion> dirtyOIDs,
- // Collection<CDOID> detachedObjects, InternalCDOView excludedView)
- // {
- // InternalCDORevisionManager revisionManager = getRevisionManager();
- // CDOBranch branch = branchPoint.getBranch();
- // long timeStamp = branchPoint.getTimeStamp();
- //
- // if (excludedView == null || timeStamp == CDORevision.UNSPECIFIED_DATE)
- // {
- // for (CDOIDAndVersion dirtyOID : dirtyOIDs)
- // {
- // CDOID id = dirtyOID.getID();
- // int version = dirtyOID.getVersion();
- // revisionManager.reviseVersion(id, branch.getVersion(version), timeStamp);
- // }
- // }
- //
- // for (CDOID id : detachedObjects)
- // {
- // revisionManager.reviseLatest(id, branch);
- // }
- // }
-
- /**
- * @since 2.0
- */
public void handleCommitNotification(CDOCommitInfo commitInfo)
{
try

Back to the top