Skip to content

Commit 45eeece

Browse files
committed
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 #2432
1 parent 4721af7 commit 45eeece

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/org.eclipse.ui.tests/Eclipse UI Tests/org/eclipse/ui/tests/datatransfer/ImportExistingArchiveProjectFilterTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ private void processElementAndChildren(Object element, ITreeContentProvider cont
155155
IFolder folder = (IFolder) element;
156156
assertFalse(folder.getName().equalsIgnoreCase("res"));
157157
} else {
158+
if (element.getClass().getName().startsWith("org.eclipse.jdt")) {
159+
return; // to expensive to walk whole JRE
160+
}
158161
Object[] children = contentProvider.getChildren(element);
159162
for (Object child : children) {
160163
processElementAndChildren(child, contentProvider);

0 commit comments

Comments
 (0)