1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 06:05:24 +02:00

Fix for 73406 - Indexer: Double-Indexing on Specific Project

This commit is contained in:
Bogdan Gheorghe 2004-09-09 21:02:51 +00:00
parent bb6eaf7e55
commit 642dee2f9b
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,6 @@
2004-09-09 Bogdan Gheorghe
Fix for 73406 - Indexer: Double-Indexing on Specific Project
2004-09-09 Chris Wiebe
limit base class selection to referenced projects

View file

@ -32,10 +32,12 @@ public class IndexerOptionPropertyPage extends PropertyPage {
private IndexerOptionDialogPage optionPage;
private boolean oldIndexerValue;
private int oldIndexerProblemsValue;
private boolean requestedIndexAll;
public IndexerOptionPropertyPage(){
super();
optionPage = new IndexerOptionDialogPage();
requestedIndexAll = false;
}
/* (non-Javadoc)
* @see org.eclipse.jface.preference.PreferencePage#createContents(org.eclipse.swt.widgets.Composite)
@ -91,11 +93,13 @@ public class IndexerOptionPropertyPage extends PropertyPage {
CCorePlugin.getDefault().getCoreModel().getIndexManager().removeIndexerProblems(tempProject);
//if indexer is now on send a index all request
if( indexChanged && newIndexerValue )
if( indexChanged && newIndexerValue && !requestedIndexAll ) {
CCorePlugin.getDefault().getCoreModel().getIndexManager().indexAll(tempProject);
else if( indexChanged && !newIndexerValue )
requestedIndexAll = true;
} else if( indexChanged && !newIndexerValue ) {
CCorePlugin.getDefault().getCoreModel().getIndexManager().discardJobs( tempProject.getName() );
}
}
return true;
}