Skip to content

Commit

Permalink
Revert "May fix issue eclipse-jdt#2716 (eclipse-jdt#3117)"
Browse files Browse the repository at this point in the history
This reverts commit 9c11818 as it
introduced regression and did not fix the original problem.

Fixes eclipse-jdt#3125
  • Loading branch information
iloveeclipse committed Oct 21, 2024
1 parent a569f00 commit 0605d3e
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
package org.eclipse.jdt.internal.core;

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;

/**
* Implementation of IJavaModel. A Java Model is specific to a
Expand All @@ -31,14 +28,7 @@ public class JavaModelInfo extends OpenableElementInfo {
* Compute the non-java resources contained in this java project.
*/
private Object[] computeNonJavaResources() {
IWorkspaceRoot workspaceRoot = ResourcesPlugin.getWorkspace().getRoot();
try {
workspaceRoot.refreshLocal(IResource.DEPTH_INFINITE, null);
} catch (CoreException e) {
e.printStackTrace();
return null;
}
IProject[] projects = workspaceRoot.getProjects();
IProject[] projects = ResourcesPlugin.getWorkspace().getRoot().getProjects();
int length = projects.length;
Object[] resources = null;
int index = 0;
Expand Down

0 comments on commit 0605d3e

Please sign in to comment.