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.
      • getResource

        public org.eclipse.emf.ecore.resource.Resource getResource​(org.eclipse.emf.common.util.URI uri)
        Description copied from interface: IBmExternalUriResolver
        Ask link providers to obtain resource matched with specified URI. Used to provider resources for system types.
        Specified by:
        getResource in interface IBmExternalUriResolver
        Overrides:
        getResource in class XtextBmLinkProvider
        Parameters:
        uri - The resource URI. May not be null
        Returns:
        the loaded resource if found, otherwise null.
      • 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
      • createResource

        protected org.eclipse.emf.ecore.resource.Resource createResource​(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                                                         org.eclipse.emf.common.util.URI uriTrim)
        Description copied from class: XtextBmLinkProvider
        Creates resource by uri
        Overrides:
        createResource in class XtextBmLinkProvider
        Parameters:
        resourceSet - ResourceSet for creating resource, can't be null
        uriTrim - uri of the resource, can't be null
        Returns:
        creating resource, never null
      • 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