From f87240796e6584aac41479a8d4ba5b250abdd91c Mon Sep 17 00:00:00 2001 From: Martin Lippert Date: Wed, 29 Feb 2012 23:08:38 +0100 Subject: [PATCH] STS-2472: wrapping getResolvedClasspath into a job to avoid too broad locking --- .../core/java/ProjectClassLoaderCache.java | 26 +++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/plugins/org.springframework.ide.eclipse.core/src/org/springframework/ide/eclipse/core/java/ProjectClassLoaderCache.java b/plugins/org.springframework.ide.eclipse.core/src/org/springframework/ide/eclipse/core/java/ProjectClassLoaderCache.java index a333ca34b4..2f16a42150 100644 --- a/plugins/org.springframework.ide.eclipse.core/src/org/springframework/ide/eclipse/core/java/ProjectClassLoaderCache.java +++ b/plugins/org.springframework.ide.eclipse.core/src/org/springframework/ide/eclipse/core/java/ProjectClassLoaderCache.java @@ -36,9 +36,11 @@ import org.eclipse.core.resources.IResourceDeltaVisitor; import org.eclipse.core.resources.IWorkspace; import org.eclipse.core.resources.IWorkspaceRoot; +import org.eclipse.core.resources.IWorkspaceRunnable; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IPath; +import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.Preferences.IPropertyChangeListener; import org.eclipse.core.runtime.Preferences.PropertyChangeEvent; import org.eclipse.jdt.core.ElementChangedEvent; @@ -124,7 +126,7 @@ private static void addClassPathUrls(IProject project, List paths, Set paths, URI uri) throws MalformedURLException { File file = new File(uri);