mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Fix for 91127
This commit is contained in:
parent
ed2df81872
commit
68d068fd86
2 changed files with 8 additions and 3 deletions
|
@ -456,11 +456,11 @@ public class SourceIndexer extends AbstractCExtension implements ICDTIndexer {
|
|||
|
||||
switch (kind) {
|
||||
case ICDTIndexer.PROJECT :
|
||||
this.indexAll(project);
|
||||
this.indexAll(project);
|
||||
break;
|
||||
|
||||
case ICDTIndexer.FOLDER :
|
||||
this.indexSourceFolder(project,project.getFullPath(),null);
|
||||
this.indexSourceFolder(project,delta.getFullPath(),null);
|
||||
break;
|
||||
|
||||
case ICDTIndexer.COMPILATION_UNIT:
|
||||
|
@ -488,7 +488,7 @@ public class SourceIndexer extends AbstractCExtension implements ICDTIndexer {
|
|||
// is done in updateCurrentDeltaAndIndex
|
||||
|
||||
case ICDTIndexer.FOLDER :
|
||||
this.removeSourceFolderFromIndex(project,project.getFullPath(),null);
|
||||
this.removeSourceFolderFromIndex(project,delta.getFullPath(),null);
|
||||
break;
|
||||
|
||||
case ICDTIndexer.COMPILATION_UNIT:
|
||||
|
|
|
@ -105,6 +105,11 @@ public class SourceIndexerBlock extends AbstractIndexerPage {
|
|||
}
|
||||
}
|
||||
|
||||
//Project has just been created and its values have been store - don't need to request
|
||||
//an indexAll as one will come through the DeltaProcessor
|
||||
if (currentProject == null)
|
||||
return;
|
||||
|
||||
ICDTIndexer indexer = CCorePlugin.getDefault().getCoreModel().getIndexManager().getIndexerForProject(currentProject);
|
||||
|
||||
int indexMarkersInt = Integer.parseInt(indexMarkers);
|
||||
|
|
Loading…
Add table
Reference in a new issue