Class ProjectContentCache
java.lang.Object
com.e1c.langtool.v8.dt.bsl.i18n.internal.cache.ProjectContentCache
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontains(org.eclipse.core.resources.IFile file) Examine if cache contains data for givenfile.voiddispose()get(org.eclipse.core.resources.IFile file) Retrieve cached content for givenfile.org.eclipse.core.resources.IProjectvoidinit()booleaninvalidate(org.eclipse.core.resources.IFile file) Invalidate cache for givenfile.voidStorecontentassociated withfile.
-
Constructor Details
-
ProjectContentCache
-
-
Method Details
-
init
- Throws:
Exception
-
dispose
public void dispose() -
getProject
public org.eclipse.core.resources.IProject getProject() -
contains
public boolean contains(org.eclipse.core.resources.IFile file) Examine if cache contains data for givenfile.- Parameters:
file-- Returns:
trueif cache contains content associated with givenfile,falseotherwise.
-
get
Retrieve cached content for givenfile. If cache has no content for given file thennullwill be returned.- Parameters:
file-- Returns:
- Cached content or
nullif no content found in cache.
-
invalidate
public boolean invalidate(org.eclipse.core.resources.IFile file) Invalidate cache for givenfile.- Parameters:
file- File to be invalidated
-
put
Storecontentassociated withfile.- Parameters:
file- File to be added to the cachecontent- Cached file content
-