1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-10 12:03:16 +02:00

Fix for 91127

This commit is contained in:
Bogdan Gheorghe 2005-04-13 01:27:06 +00:00
parent ed2df81872
commit 68d068fd86
2 changed files with 8 additions and 3 deletions

View file

@ -456,11 +456,11 @@ public class SourceIndexer extends AbstractCExtension implements ICDTIndexer {
switch (kind) { switch (kind) {
case ICDTIndexer.PROJECT : case ICDTIndexer.PROJECT :
this.indexAll(project); this.indexAll(project);
break; break;
case ICDTIndexer.FOLDER : case ICDTIndexer.FOLDER :
this.indexSourceFolder(project,project.getFullPath(),null); this.indexSourceFolder(project,delta.getFullPath(),null);
break; break;
case ICDTIndexer.COMPILATION_UNIT: case ICDTIndexer.COMPILATION_UNIT:
@ -488,7 +488,7 @@ public class SourceIndexer extends AbstractCExtension implements ICDTIndexer {
// is done in updateCurrentDeltaAndIndex // is done in updateCurrentDeltaAndIndex
case ICDTIndexer.FOLDER : case ICDTIndexer.FOLDER :
this.removeSourceFolderFromIndex(project,project.getFullPath(),null); this.removeSourceFolderFromIndex(project,delta.getFullPath(),null);
break; break;
case ICDTIndexer.COMPILATION_UNIT: case ICDTIndexer.COMPILATION_UNIT:

View file

@ -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); ICDTIndexer indexer = CCorePlugin.getDefault().getCoreModel().getIndexManager().getIndexerForProject(currentProject);
int indexMarkersInt = Integer.parseInt(indexMarkers); int indexMarkersInt = Integer.parseInt(indexMarkers);