Class XtextResourceCleanerService

    • Constructor Detail

      • XtextResourceCleanerService

        public XtextResourceCleanerService()
    • Method Detail

      • cleanUp

        public void cleanUp​(org.eclipse.emf.ecore.resource.Resource resource)
        Description copied from interface: IXtextResourceCleanerService
        Clears data from resource. 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 interface IXtextResourceCleanerService
        Parameters:
        resource - clearing Resource, can't be null
      • isClean

        public boolean isClean​(org.eclipse.emf.common.util.URI uri)
        Description copied from interface: IXtextResourceCleanerService
        Checks that resource with uri was cleaned
        Specified by:
        isClean in interface IXtextResourceCleanerService
        Parameters:
        uri - resource URI for checking, can't be null
        Returns:
        true if resource with uri was cleaned false otherwise
      • needProjectFullClean

        public boolean needProjectFullClean​(org.eclipse.core.resources.IProject project)
        Checks that we need clean all resources in IProject. See #cleanUp(IProject)
        Parameters:
        project - IProject for checking need full clean or not, can't be null
        Returns:
        true if we need clean all resources in IProject, false otherwise
      • skipCleanResourceStorage

        public void skipCleanResourceStorage()
        Deletes all caching uri of cleared resources