Lines 10-15
Link Here
|
10 |
*******************************************************************************/ |
10 |
*******************************************************************************/ |
11 |
package org.eclipse.jdt.internal.core; |
11 |
package org.eclipse.jdt.internal.core; |
12 |
|
12 |
|
|
|
13 |
import org.eclipse.core.resources.ResourcesPlugin; |
13 |
import org.eclipse.core.runtime.jobs.ISchedulingRule; |
14 |
import org.eclipse.core.runtime.jobs.ISchedulingRule; |
14 |
import org.eclipse.jdt.core.IJavaElement; |
15 |
import org.eclipse.jdt.core.IJavaElement; |
15 |
import org.eclipse.jdt.core.JavaModelException; |
16 |
import org.eclipse.jdt.core.JavaModelException; |
Lines 43-48
Link Here
|
43 |
DeltaProcessor deltaProcessor = state.getDeltaProcessor(); |
44 |
DeltaProcessor deltaProcessor = state.getDeltaProcessor(); |
44 |
ClasspathChange change = (ClasspathChange) deltaProcessor.classpathChanges.get(project.getProject()); |
45 |
ClasspathChange change = (ClasspathChange) deltaProcessor.classpathChanges.get(project.getProject()); |
45 |
if (this.canChangeResources) { |
46 |
if (this.canChangeResources) { |
|
|
47 |
// workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=177922 |
48 |
if (isTopLevelOperation() && !ResourcesPlugin.getWorkspace().isTreeLocked()) { |
49 |
new ClasspathValidation(project).validate(); |
50 |
} |
51 |
|
46 |
// delta, indexing and classpath markers are going to be created by the delta processor |
52 |
// delta, indexing and classpath markers are going to be created by the delta processor |
47 |
// while handling the .classpath file change |
53 |
// while handling the .classpath file change |
48 |
|
54 |
|