Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2010-12-22 08:09:49 -0500
committerEike Stepper2010-12-22 08:09:49 -0500
commita828d91030c77caa63f7ba878f529eaafb274fb6 (patch)
tree782049eddd8082d276064e1b91b5f47cb2e6372b /plugins/org.eclipse.emf.cdo.workspace.efs
parentf5f969ce0b4c158aee51b24db45ef84723faffa5 (diff)
downloadcdo-a828d91030c77caa63f7ba878f529eaafb274fb6.tar.gz
cdo-a828d91030c77caa63f7ba878f529eaafb274fb6.tar.xz
cdo-a828d91030c77caa63f7ba878f529eaafb274fb6.zip
[327405] Provide an offline CDOWorkspace with Checkout/Update/Commit workflows
https://bugs.eclipse.org/bugs/show_bug.cgi?id=327405
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.workspace.efs')
-rw-r--r--plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOWorkspaceStore.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOWorkspaceStore.java b/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOWorkspaceStore.java
index 952e7c619d..bbe7779ba8 100644
--- a/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOWorkspaceStore.java
+++ b/plugins/org.eclipse.emf.cdo.workspace.efs/src/org/eclipse/emf/cdo/workspace/internal/efs/CDOWorkspaceStore.java
@@ -289,7 +289,10 @@ public final class CDOWorkspaceStore extends AbstractResourceNodeStore
int index = cdoContents.indexOf(cdoObject);
if (index != -1)
{
- cdoContents.move(i, index);
+ if (index != i)
+ {
+ cdoContents.move(i, index);
+ }
}
else
{

Back to the top