mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
Change for 169847, facilitate remove indexing.
This commit is contained in:
parent
dccac113b7
commit
5f1be363ee
1 changed files with 10 additions and 4 deletions
|
@ -10,6 +10,7 @@
|
||||||
* Markus Schorn (Wind River Systems)
|
* Markus Schorn (Wind River Systems)
|
||||||
* Andrew Ferguson (Symbian)
|
* Andrew Ferguson (Symbian)
|
||||||
* Anton Leherbauer (Wind River Systems)
|
* Anton Leherbauer (Wind River Systems)
|
||||||
|
* IBM Corporation
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.core.index;
|
package org.eclipse.cdt.internal.core.index;
|
||||||
|
|
||||||
|
@ -60,8 +61,13 @@ public class IndexBasedCodeReaderFactory implements ICodeReaderFactory {
|
||||||
public IIndexFile fFile= null;
|
public IIndexFile fFile= null;
|
||||||
public int fRequested= 0;
|
public int fRequested= 0;
|
||||||
}
|
}
|
||||||
|
private static class NeedToParseException extends Exception {
|
||||||
|
private static final long serialVersionUID = 1L;
|
||||||
|
}
|
||||||
|
|
||||||
private final static boolean CASE_SENSITIVE_FILES= !new File("a").equals(new File("A")); //$NON-NLS-1$//$NON-NLS-2$
|
private final static boolean CASE_SENSITIVE_FILES= !new File("a").equals(new File("A")); //$NON-NLS-1$//$NON-NLS-2$
|
||||||
|
private final static char[] EMPTY_CHARS = new char[0];
|
||||||
|
|
||||||
private final IIndex index;
|
private final IIndex index;
|
||||||
private Map/*<IIndexFileLocation,FileInfo>*/ fileInfoCache;
|
private Map/*<IIndexFileLocation,FileInfo>*/ fileInfoCache;
|
||||||
private Map/*<String,IIndexFileLocation>*/ iflCache;
|
private Map/*<String,IIndexFileLocation>*/ iflCache;
|
||||||
|
@ -71,11 +77,7 @@ public class IndexBasedCodeReaderFactory implements ICodeReaderFactory {
|
||||||
private ICodeReaderFactory fFallBackFactory;
|
private ICodeReaderFactory fFallBackFactory;
|
||||||
private CallbackHandler fCallbackHandler;
|
private CallbackHandler fCallbackHandler;
|
||||||
|
|
||||||
private static final char[] EMPTY_CHARS = new char[0];
|
|
||||||
|
|
||||||
private static class NeedToParseException extends Exception {
|
|
||||||
private static final long serialVersionUID = 1L;
|
|
||||||
}
|
|
||||||
public IndexBasedCodeReaderFactory(IIndex index) {
|
public IndexBasedCodeReaderFactory(IIndex index) {
|
||||||
this(index, new HashMap/*<String,IIndexFileLocation>*/());
|
this(index, new HashMap/*<String,IIndexFileLocation>*/());
|
||||||
}
|
}
|
||||||
|
@ -95,6 +97,10 @@ public class IndexBasedCodeReaderFactory implements ICodeReaderFactory {
|
||||||
this.fFallBackFactory= fallbackFactory;
|
this.fFallBackFactory= fallbackFactory;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final protected Map getIFLCache() {
|
||||||
|
return iflCache;
|
||||||
|
}
|
||||||
|
|
||||||
public int getUniqueIdentifier() {
|
public int getUniqueIdentifier() {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue