mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-24 17:35:35 +02:00
Bug 375601: Remove workaround for bug 359485.
This commit is contained in:
parent
b4481a5773
commit
9c2b66cf03
1 changed files with 3 additions and 10 deletions
|
@ -85,7 +85,6 @@ import org.eclipse.core.resources.IFile;
|
|||
import org.eclipse.core.resources.IProject;
|
||||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IResourceChangeEvent;
|
||||
import org.eclipse.core.resources.ProjectScope;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IConfigurationElement;
|
||||
|
@ -495,8 +494,6 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
String newid= IndexerPreferences.get(prj, IndexerPreferences.KEY_INDEXER_ID, IPDOMManager.ID_NO_INDEXER);
|
||||
Properties props= IndexerPreferences.getProperties(prj);
|
||||
|
||||
// Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=359485
|
||||
synchronized (new ProjectScope(prj).getNode(CCorePlugin.PLUGIN_ID)) {
|
||||
synchronized (fUpdatePolicies) {
|
||||
if (fClosingProjects.contains(prj.getName())) {
|
||||
return;
|
||||
|
@ -520,7 +517,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
enqueue(new PDOMRebuildTask(indexer));
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
if (oldIndexer != null) {
|
||||
stopIndexer(oldIndexer);
|
||||
|
@ -553,8 +550,6 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
|
||||
assert !Thread.holdsLock(fProjectToPDOM);
|
||||
try {
|
||||
// Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=359485
|
||||
synchronized (new ProjectScope(prj).getNode(CCorePlugin.PLUGIN_ID)) {
|
||||
synchronized (fUpdatePolicies) {
|
||||
if (fClosingProjects.contains(name)) {
|
||||
if (fTraceIndexerSetup)
|
||||
|
@ -604,14 +599,12 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
return;
|
||||
}
|
||||
}}
|
||||
}
|
||||
|
||||
// rebuild is required, try import first.
|
||||
TeamPDOMImportOperation operation= new TeamPDOMImportOperation(project);
|
||||
operation.run(pm);
|
||||
|
||||
// Workaround for https://bugs.eclipse.org/bugs/show_bug.cgi?id=359485
|
||||
synchronized (new ProjectScope(prj).getNode(CCorePlugin.PLUGIN_ID)) {
|
||||
synchronized (fUpdatePolicies) {
|
||||
if (fClosingProjects.contains(name)) {
|
||||
if (fTraceIndexerSetup)
|
||||
|
@ -640,7 +633,7 @@ public class PDOMManager implements IWritableIndexManager, IListener {
|
|||
}
|
||||
enqueue(task);
|
||||
}
|
||||
}}
|
||||
}
|
||||
} catch (CoreException e) {
|
||||
// Ignore if project is no longer open
|
||||
if (prj.isOpen()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue