mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fixed ordering problem where the CProjectNature was
trying to get at build info before it was created.
This commit is contained in:
parent
6a897468ed
commit
2f2d91ff46
2 changed files with 1 additions and 2 deletions
|
@ -53,7 +53,6 @@ public class StandardBuildManager implements IScannerInfoProvider {
|
||||||
try {
|
try {
|
||||||
buildInfo = (IStandardBuildInfo)resource.getSessionProperty(buildInfoProperty);
|
buildInfo = (IStandardBuildInfo)resource.getSessionProperty(buildInfoProperty);
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
return buildInfo;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Try to load one for the project
|
// Try to load one for the project
|
||||||
|
|
|
@ -518,8 +518,8 @@ public class CCorePlugin extends Plugin {
|
||||||
projectHandle.open(monitor);
|
projectHandle.open(monitor);
|
||||||
|
|
||||||
// Add C Nature ... does not add duplicates
|
// Add C Nature ... does not add duplicates
|
||||||
CProjectNature.addCNature(projectHandle, new SubProgressMonitor(monitor, 1));
|
|
||||||
mapCProjectOwner(projectHandle, projectID, false);
|
mapCProjectOwner(projectHandle, projectID, false);
|
||||||
|
CProjectNature.addCNature(projectHandle, new SubProgressMonitor(monitor, 1));
|
||||||
} finally {
|
} finally {
|
||||||
//monitor.done();
|
//monitor.done();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue