mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-06-18 Alain Magloire
- The call CCorePlugin.getCDescriptor(..) seems to return null. This should be fix but meanwhile give the indexer a break by catching it.
This commit is contained in:
parent
a443caeb08
commit
1972c2b70a
2 changed files with 12 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-06-18 Alain Magloire
|
||||
- The call CCorePlugin.getCDescriptor(..) seems to return null.
|
||||
This should be fix but meanwhile give the indexer a break by catching it.
|
||||
|
||||
2004-06-18 Andrew Niefer
|
||||
- call InderManager.jobFinishedNotification( this ) from IndexRequest.cancel() so that the IndexManager's jobSet doesn't
|
||||
become stale.
|
||||
|
|
|
@ -756,16 +756,18 @@ public class IndexManager extends JobManager implements IIndexConstants {
|
|||
|
||||
private Boolean loadIndexerEnabledFromCDescriptor(IProject project) throws CoreException {
|
||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project, true );
|
||||
|
||||
Node child = descriptor.getProjectData(CDT_INDEXER).getFirstChild();
|
||||
// FIXME: descriptor should not be null ... but ... lets catch here for now.
|
||||
Boolean strBool = null;
|
||||
if (descriptor != null) {
|
||||
Node child = descriptor.getProjectData(CDT_INDEXER).getFirstChild();
|
||||
|
||||
while (child != null) {
|
||||
if (child.getNodeName().equals(INDEXER_ENABLED))
|
||||
strBool = Boolean.valueOf(((Element)child).getAttribute(INDEXER_VALUE));
|
||||
while (child != null) {
|
||||
if (child.getNodeName().equals(INDEXER_ENABLED))
|
||||
strBool = Boolean.valueOf(((Element)child).getAttribute(INDEXER_VALUE));
|
||||
|
||||
|
||||
child = child.getNextSibling();
|
||||
child = child.getNextSibling();
|
||||
}
|
||||
}
|
||||
|
||||
return strBool;
|
||||
|
|
Loading…
Add table
Reference in a new issue