Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2016-03-20 08:39:56 +0000
committerEike Stepper2016-03-20 08:39:56 +0000
commitc87e5d0cea576100ff1f66bd9961f74d249fcdbb (patch)
tree943c1fcc84186a95b6d19fc21706e707ab32a95a /plugins/org.eclipse.emf.cdo.explorer.ui
parent8b43765f99f4c846ab31d765bf310c51d18b4080 (diff)
downloadcdo-c87e5d0cea576100ff1f66bd9961f74d249fcdbb.tar.gz
cdo-c87e5d0cea576100ff1f66bd9961f74d249fcdbb.tar.xz
cdo-c87e5d0cea576100ff1f66bd9961f74d249fcdbb.zip
[490023] CDOCheckoutViewerSorter is slow
https://bugs.eclipse.org/bugs/show_bug.cgi?id=490023
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.explorer.ui')
-rw-r--r--plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java15
1 files changed, 1 insertions, 14 deletions
diff --git a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
index 17d7b6d0a3..44cdc7e195 100644
--- a/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
+++ b/plugins/org.eclipse.emf.cdo.explorer.ui/src/org/eclipse/emf/cdo/explorer/ui/checkouts/CDOCheckoutViewerSorter.java
@@ -10,11 +10,9 @@
*/
package org.eclipse.emf.cdo.explorer.ui.checkouts;
-import org.eclipse.emf.cdo.CDOElement;
import org.eclipse.emf.cdo.eresource.CDOResourceFolder;
import org.eclipse.emf.cdo.eresource.CDOResourceNode;
-import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.jface.viewers.Viewer;
@@ -43,18 +41,7 @@ public class CDOCheckoutViewerSorter extends org.eclipse.jface.viewers.ViewerSor
// Don't sort normal EObjects.
if (e1 instanceof EObject && !(e1 instanceof CDOResourceNode))
{
- EObject child1 = (EObject)e1;
- EObject child2 = (EObject)e2;
-
- EObject parent = CDOElement.getParentOf(child1);
- if (parent != null)
- {
- EList<EObject> children = parent.eContents();
-
- int pos1 = children.indexOf(child1);
- int pos2 = children.indexOf(child2);
- return pos1 - pos2;
- }
+ return 0;
}
return super.compare(viewer, e1, e2);

Back to the top