Interface IBslResourceExtension


  • public interface IBslResourceExtension
    BSL resource extension logic API for the client contribution
    • Method Detail

      • replaceBslStreamIfNecessary

        InputStream replaceBslStreamIfNecessary​(org.eclipse.xtext.resource.XtextResource bslResource,
                                                InputStream inputStream,
                                                Map<?,​?> options)
        Replaces the BSL input stream if necessary
        Parameters:
        bslResource - The target BSL resource. May not be null
        inputStream - The original input stream. May not be null
        options - The loadding options. May be null
        Returns:
        The replaced stream if necessary. Otherwise should return the original stream. Never null
      • replaceBslStreamIfNecessary

        InputStream replaceBslStreamIfNecessary​(org.eclipse.core.resources.IFile bslFile,
                                                InputStream inputStream)
        Replaces the BSL inpute stream if necessary. This variant is used for non-resource file reading operations, like platform XML export
        Parameters:
        bslFile - The source BSL file. May not be null
        inputStream - The original input stream. May not be null
        Returns:
        The replaced stream if necessary. Otherwise should return the original stream. Never null