Class XtextResourceCleanerService
java.lang.Object
com._1c.g5.modeling.xtext.resource.XtextResourceCleanerService
- All Implemented Interfaces:
IXtextResourceCleanerService
Default implementation of
Logic of resource clearing is delegated to the class implements
IXtextResourceCleanerService Logic of resource clearing is delegated to the class implements
IXtextResourceCleaner in extension point "com._1c.g5.modeling.xtext.xtextResourceCleaner"-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanUp(org.eclipse.emf.ecore.resource.Resource resource) Clears data fromresource.booleanisClean(org.eclipse.emf.common.util.URI uri) Checks that resource withuriwas cleanedbooleanneedProjectFullClean(org.eclipse.core.resources.IProject project) Checks that we need clean all resources inIProject.voidDeletes all caching uri of cleared resources
-
Constructor Details
-
XtextResourceCleanerService
public XtextResourceCleanerService()
-
-
Method Details
-
cleanUp
public void cleanUp(org.eclipse.emf.ecore.resource.Resource resource) Description copied from interface:IXtextResourceCleanerServiceClears data fromresource. The logic of clearing resource data is defined by extension points "com._1c.g5.modeling.xtext.xtextResourceCleaner" for each type of resource- Specified by:
cleanUpin interfaceIXtextResourceCleanerService- Parameters:
resource- clearingResource, can't benull
-
isClean
public boolean isClean(org.eclipse.emf.common.util.URI uri) Description copied from interface:IXtextResourceCleanerServiceChecks that resource withuriwas cleaned- Specified by:
isCleanin interfaceIXtextResourceCleanerService- Parameters:
uri- resourceURIfor checking, can't benull- Returns:
trueif resource withuriwas cleanedfalseotherwise
-
needProjectFullClean
public boolean needProjectFullClean(org.eclipse.core.resources.IProject project) Checks that we need clean all resources inIProject. See#cleanUp(IProject)- Parameters:
project-IProjectfor checking need full clean or not, can't benull- Returns:
trueif we need clean all resources inIProject,falseotherwise
-
skipCleanResourceStorage
public void skipCleanResourceStorage()Deletes all caching uri of cleared resources
-