mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
bug 371797: Use workspace scheduling rule for serializing workspace providers
This commit is contained in:
parent
31331544b6
commit
751d4a45f0
2 changed files with 4 additions and 2 deletions
|
@ -44,6 +44,7 @@ import org.eclipse.core.resources.IMarker;
|
||||||
import org.eclipse.core.resources.IResource;
|
import org.eclipse.core.resources.IResource;
|
||||||
import org.eclipse.core.resources.IWorkspaceRoot;
|
import org.eclipse.core.resources.IWorkspaceRoot;
|
||||||
import org.eclipse.core.resources.ResourcesPlugin;
|
import org.eclipse.core.resources.ResourcesPlugin;
|
||||||
|
import org.eclipse.core.resources.WorkspaceJob;
|
||||||
import org.eclipse.core.runtime.CoreException;
|
import org.eclipse.core.runtime.CoreException;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
import org.eclipse.core.runtime.IProgressMonitor;
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
@ -350,9 +351,9 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
|
||||||
}
|
}
|
||||||
isExecuted = true;
|
isExecuted = true;
|
||||||
|
|
||||||
Job job = new Job(ManagedMakeMessages.getResourceString("AbstractBuiltinSpecsDetector.DiscoverBuiltInSettingsJobName")) { //$NON-NLS-1$
|
WorkspaceJob job = new WorkspaceJob(ManagedMakeMessages.getResourceString("AbstractBuiltinSpecsDetector.DiscoverBuiltInSettingsJobName")) { //$NON-NLS-1$
|
||||||
@Override
|
@Override
|
||||||
protected IStatus run(IProgressMonitor monitor) {
|
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||||
IStatus status;
|
IStatus status;
|
||||||
try {
|
try {
|
||||||
startup(currentCfgDescription, null);
|
startup(currentCfgDescription, null);
|
||||||
|
|
|
@ -585,6 +585,7 @@ public class LanguageSettingsProvidersSerializer {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
job.setRule(ResourcesPlugin.getWorkspace().getRoot());
|
||||||
job.schedule();
|
job.schedule();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue