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 SummaryConstructors Constructor Description XtextResourceCleanerService()
 - 
Method SummaryAll 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- 
cleanUppublic 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 interface- IXtextResourceCleanerService
- Parameters:
- resource- clearing- Resource, can't be- null
 
 - 
isCleanpublic boolean isClean(org.eclipse.emf.common.util.URI uri) Description copied from interface:IXtextResourceCleanerServiceChecks that resource withuriwas cleaned- Specified by:
- isCleanin interface- IXtextResourceCleanerService
- Parameters:
- uri- resource- URIfor checking, can't be- null
- Returns:
- trueif resource with- uriwas cleaned- falseotherwise
 
 - 
needProjectFullCleanpublic 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 be- null
- Returns:
- trueif we need clean all resources in- IProject,- falseotherwise
 
 - 
skipCleanResourceStoragepublic void skipCleanResourceStorage() Deletes all caching uri of cleared resources
 
- 
 
-