Class BslBmLinkProvider

    • Constructor Detail

      • BslBmLinkProvider

        public BslBmLinkProvider()
    • Method Detail

      • supports

        public boolean supports​(org.eclipse.emf.common.util.URI uri)
        Description copied from interface: IBmExternalUriResolver
        Checks if the specified URI is supported.
        Specified by:
        supports in interface IBmExternalUriResolver
        Overrides:
        supports in class XtextBmLinkProvider
        Parameters:
        uri - The URI to run the check against. May not be null.
        Returns:
        true if the URI is supported by this resolver, otherwise false.
      • initResource

        protected void initResource​(org.eclipse.emf.ecore.resource.Resource newResource)
        Description copied from class: XtextBmLinkProvider
        Initialize resource
        Overrides:
        initResource in class XtextBmLinkProvider
        Parameters:
        newResource - initializing resource, can't be null
      • needCacheResource

        protected boolean needCacheResource​(org.eclipse.emf.common.util.URI uri)
        Description copied from class: XtextBmLinkProvider
        Checks that resource creating by this file need to be cached
        Specified by:
        needCacheResource in class XtextBmLinkProvider
        Returns:
        true if resource should be cached, false otherwise
      • fileExist

        protected boolean fileExist​(org.eclipse.emf.common.util.URI uriTrim)
        Description copied from class: XtextBmLinkProvider
        Checks that file for reading content of the resource exist
        Specified by:
        fileExist in class XtextBmLinkProvider
        Parameters:
        uriTrim - uri of the reading resource, can't be null
        Returns:
        true if file for reading content of the resource exist, false otherwise
      • checkResourceInResourceSet

        protected org.eclipse.emf.ecore.resource.Resource checkResourceInResourceSet​(org.eclipse.emf.common.util.URI uri,
                                                                                     org.eclipse.emf.ecore.resource.Resource loadedResource)
        Description copied from class: XtextBmLinkProvider
        Additional checking for resource - is it contained in resource set or not
        Overrides:
        checkResourceInResourceSet in class XtextBmLinkProvider
        Parameters:
        uri - uri of the checking resource, can't be null
        loadedResource - loaded resource, can't be null
        Returns:
        new loaded resource if needed or loadedResouce, never null
      • getCacheEntryWeight

        protected int getCacheEntryWeight​(org.eclipse.emf.common.util.URI uri,
                                          org.eclipse.emf.ecore.resource.Resource loadedResource)
        Description copied from class: XtextBmLinkProvider
        Calculates the cache entry weight.
        Overrides:
        getCacheEntryWeight in class XtextBmLinkProvider
        Parameters:
        uri - the URI of resource, cannot be null.
        loadedResource - the loaded resource, cannot be null.
        Returns:
        the cache entry weight, When the weight of an entry is zero it will not be considered for size-based eviction(though it still may be evicted by other means).
        See Also:
        CacheBuilder.weigher(com.google.common.cache.Weigher)