|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nokia.carbide.cpp.epoc.engine.preprocessor.DefaultModelDocumentProvider
public class DefaultModelDocumentProvider
A default implementation of IModelDocumentProvider which caches documents. It keeps a maximum number of documents in memory at a time. It refreshes a document when the underlying file's timestamp changes.
IModelDocumentProvider
Method Summary | |
---|---|
IDocument |
getDocument(java.io.File file)
Locate an existing document or load it. |
static DefaultModelDocumentProvider |
getInstance()
Get the singleton instanceof the translation unit provider. |
void |
setDebugFlag(boolean flag)
Configure the debugging flag. |
void |
setMaxCacheCount(int count)
Set the maximum number of TU's to keep. |
void |
setMinimumHitsToKeep(int minHits)
Set the minimum number of hits setting, which controls the lower limit at which a TU will be kept in the cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static DefaultModelDocumentProvider getInstance()
public IDocument getDocument(java.io.File file)
IModelDocumentProvider
getDocument
in interface IModelDocumentProvider
file
- full pathed file
public void setDebugFlag(boolean flag)
flag
- public void setMaxCacheCount(int count)
This attempts to reduces the cache.
count
- number of TUs, must be nonnegativepublic void setMinimumHitsToKeep(int minHits)
This attempts to reduces the cache.
minHits
- minimum hits, must be nonnegative
|
Carbide.c++ | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |