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 implementsIXtextResourceCleaner
in 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 void
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
skipCleanResourceStorage()
Deletes all caching uri of cleared resources
-
-
-
Method Detail
-
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
-
-