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 TypeMethodDescriptionvoid
cleanUp
(org.eclipse.emf.ecore.resource.Resource resource) Clears data fromresource
.boolean
isClean
(org.eclipse.emf.common.util.URI uri) Checks that resource withuri
was cleanedboolean
needProjectFullClean
(org.eclipse.core.resources.IProject project) Checks that we need clean all resources inIProject
.void
Deletes 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:IXtextResourceCleanerService
Clears 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:
cleanUp
in interfaceIXtextResourceCleanerService
- Parameters:
resource
- clearingResource
, can't benull
-
isClean
public boolean isClean(org.eclipse.emf.common.util.URI uri) Description copied from interface:IXtextResourceCleanerService
Checks that resource withuri
was cleaned- Specified by:
isClean
in interfaceIXtextResourceCleanerService
- Parameters:
uri
- resourceURI
for checking, can't benull
- Returns:
true
if resource withuri
was cleanedfalse
otherwise
-
needProjectFullClean
public boolean needProjectFullClean(org.eclipse.core.resources.IProject project) Checks that we need clean all resources inIProject
. See#cleanUp(IProject)
- Parameters:
project
-IProject
for checking need full clean or not, can't benull
- Returns:
true
if we need clean all resources inIProject
,false
otherwise
-
skipCleanResourceStorage
public void skipCleanResourceStorage()Deletes all caching uri of cleared resources
-