mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Merge remote-tracking branch 'cdt/master' into sd90
This commit is contained in:
commit
775d00a41d
3 changed files with 37 additions and 20 deletions
|
@ -45,6 +45,7 @@ import org.eclipse.core.resources.IMarker;
|
|||
import org.eclipse.core.resources.IResource;
|
||||
import org.eclipse.core.resources.IWorkspaceRoot;
|
||||
import org.eclipse.core.resources.ResourcesPlugin;
|
||||
import org.eclipse.core.resources.WorkspaceJob;
|
||||
import org.eclipse.core.runtime.CoreException;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.IProgressMonitor;
|
||||
|
@ -358,9 +359,9 @@ public abstract class AbstractBuiltinSpecsDetector extends AbstractLanguageSetti
|
|||
}
|
||||
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
|
||||
protected IStatus run(IProgressMonitor monitor) {
|
||||
public IStatus runInWorkspace(IProgressMonitor monitor) throws CoreException {
|
||||
IStatus status;
|
||||
try {
|
||||
startup(currentCfgDescription, null);
|
||||
|
|
|
@ -193,7 +193,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
};
|
||||
t.start();
|
||||
ICDescriptor desc = CCorePlugin.getDefault().getCProjectDescription(fProject, true);
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||
data.createChild("test");
|
||||
|
@ -253,7 +256,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
}
|
||||
for (int j = 0; j < threads.length; j++) {
|
||||
if (threads[j] != null) {
|
||||
try {
|
||||
threads[j].join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
}
|
||||
assertNull("Exception occurred: "+exception[j], exception[j]);
|
||||
}
|
||||
|
@ -291,7 +297,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement5");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
@ -324,7 +333,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement6");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
@ -356,7 +368,10 @@ public class CDescriptorTests extends BaseTestCase {
|
|||
ICStorageElement data = desc.getProjectStorageElement("testElement0");
|
||||
data.createChild("test");
|
||||
desc.saveProjectData();
|
||||
try {
|
||||
t.join();
|
||||
} catch (InterruptedException e) {
|
||||
}
|
||||
|
||||
fLastEvent = null;
|
||||
}
|
||||
|
|
|
@ -590,6 +590,7 @@ public class LanguageSettingsProvidersSerializer {
|
|||
}
|
||||
};
|
||||
|
||||
job.setRule(ResourcesPlugin.getWorkspace().getRoot());
|
||||
job.schedule();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue