mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-12 18:55:38 +02:00
update cached info if present
This commit is contained in:
parent
2d9d50bb2e
commit
3949e8e7db
1 changed files with 5 additions and 0 deletions
|
@ -169,6 +169,11 @@ public class MakeScannerProvider extends AbstractCExtension implements IScannerI
|
||||||
static void updateScannerInfo(MakeScannerInfo scannerInfo) throws CoreException {
|
static void updateScannerInfo(MakeScannerInfo scannerInfo) throws CoreException {
|
||||||
IProject project = scannerInfo.getProject();
|
IProject project = scannerInfo.getProject();
|
||||||
|
|
||||||
|
// See if there's already one associated with the resource for this session
|
||||||
|
if ( project.getSessionProperty(scannerInfoProperty) != null ) {
|
||||||
|
project.setSessionProperty(scannerInfoProperty, scannerInfo);
|
||||||
|
}
|
||||||
|
|
||||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project);
|
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project);
|
||||||
|
|
||||||
Element rootElement = descriptor.getProjectData(CDESCRIPTOR_ID);
|
Element rootElement = descriptor.getProjectData(CDESCRIPTOR_ID);
|
||||||
|
|
Loading…
Add table
Reference in a new issue