mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Fix for 99759: Indexer.indexEnabledOnAllProjects is always "true"
This commit is contained in:
parent
4285ad1112
commit
c4d845f895
1 changed files with 5 additions and 18 deletions
|
@ -17,6 +17,7 @@
|
|||
package org.eclipse.cdt.core.index;
|
||||
|
||||
import org.eclipse.cdt.core.CCorePlugin;
|
||||
import org.eclipse.cdt.internal.core.index.nullindexer.NullIndexer;
|
||||
import org.eclipse.cdt.internal.core.search.indexing.IndexManager;
|
||||
import org.eclipse.core.resources.IProject;
|
||||
|
||||
|
@ -60,24 +61,10 @@ public class Indexer {
|
|||
}
|
||||
|
||||
public static boolean indexEnabledOnProject(IProject project){
|
||||
boolean allEnabled = true;
|
||||
ICDTIndexer _indexer = manager.getIndexerForProject(project);
|
||||
if (_indexer instanceof NullIndexer)
|
||||
return false;
|
||||
|
||||
//TODO: BOG make this generic
|
||||
/*try {
|
||||
Boolean indexValue = (Boolean) project.getSessionProperty(IndexManager.activationKey);
|
||||
if (indexValue != null){
|
||||
if(!indexValue.booleanValue()){
|
||||
allEnabled = false;
|
||||
}
|
||||
}
|
||||
else {
|
||||
if (!manager.isIndexEnabled(project)){
|
||||
allEnabled=false;
|
||||
}
|
||||
}
|
||||
|
||||
} catch (CoreException e) {}*/
|
||||
|
||||
return allEnabled;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue