From 0d8fb24c3224da1d662a8ddfe887b785533cc77f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Wed, 11 Dec 2024 11:49:03 +0100 Subject: [PATCH] ImportExistingArchiveProjectFilterTest: skip jdt #2432 When running locally and jdt plugins are available the test walked the whole contributed JDT items in the project explorer, which took much time and Heap memory https://github.com/eclipse-platform/eclipse.platform.ui/issues/2432 --- .../datatransfer/ImportExistingArchiveProjectFilterTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java index 5132ead15f5..6e9adc65191 100644 --- a/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java +++ b/tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java @@ -21,6 +21,7 @@ import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; +import org.eclipse.core.resources.IResource; import org.eclipse.core.resources.IWorkspaceRoot; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; @@ -154,7 +155,7 @@ private void processElementAndChildren(Object element, ITreeContentProvider cont if (element instanceof IFolder) { IFolder folder = (IFolder) element; assertFalse(folder.getName().equalsIgnoreCase("res")); - } else { + } else if (element instanceof IResource) { // to expensive to walk other contributions like whole JRE from JDT Object[] children = contentProvider.getChildren(element); for (Object child : children) { processElementAndChildren(child, contentProvider);