Class XtextResourceCleanerService
- java.lang.Object
-
- com._1c.g5.modeling.xtext.resource.XtextResourceCleanerService
-
- All Implemented Interfaces:
IXtextResourceCleanerService
public class XtextResourceCleanerService extends Object implements IXtextResourceCleanerService
Default implementation ofIXtextResourceCleanerService
Logic of resource clearing is delegated to the class implementsIXtextResourceCleanerin extension point "com._1c.g5.modeling.xtext.xtextResourceCleaner"
-
-
Constructor Summary
Constructors Constructor Description XtextResourceCleanerService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanUp(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.voidskipCleanResourceStorage()Deletes all caching uri of cleared resources
-
-
-
Method Detail
-
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
-
-