Lines 39-45
Link Here
|
39 |
* - update project references |
39 |
* - update project references |
40 |
* - create resolved classpath markers |
40 |
* - create resolved classpath markers |
41 |
*/ |
41 |
*/ |
42 |
protected void classpathChanged(ClasspathChange change) throws JavaModelException { |
42 |
protected void classpathChanged(ClasspathChange change, boolean refreshExternalFolder) throws JavaModelException { |
43 |
// reset the project's caches early since some clients rely on the project's caches being up-to-date when run inside an IWorkspaceRunnable |
43 |
// reset the project's caches early since some clients rely on the project's caches being up-to-date when run inside an IWorkspaceRunnable |
44 |
// (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212769#c5 ) |
44 |
// (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=212769#c5 ) |
45 |
JavaProject project = change.project; |
45 |
JavaProject project = change.project; |
Lines 59-65
Link Here
|
59 |
new ProjectReferenceChange(project, change.oldResolvedClasspath).updateProjectReferencesIfNecessary(); |
59 |
new ProjectReferenceChange(project, change.oldResolvedClasspath).updateProjectReferencesIfNecessary(); |
60 |
|
60 |
|
61 |
// and ensure that external folders are updated as well |
61 |
// and ensure that external folders are updated as well |
62 |
new ExternalFolderChange(project, change.oldResolvedClasspath).updateExternalFoldersIfNecessary(true/*refresh if external linked folder already exists*/, null); |
62 |
new ExternalFolderChange(project, change.oldResolvedClasspath).updateExternalFoldersIfNecessary(refreshExternalFolder, null); |
63 |
|
63 |
|
64 |
} else { |
64 |
} else { |
65 |
DeltaProcessingState state = JavaModelManager.getDeltaState(); |
65 |
DeltaProcessingState state = JavaModelManager.getDeltaState(); |