Interface IBslResourceExtension
-
public interface IBslResourceExtension
BSL resource extension logic API for the client contribution
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStream
replaceBslStreamIfNecessary(org.eclipse.core.resources.IFile bslFile, InputStream inputStream)
Replaces the BSL inpute stream if necessary.InputStream
replaceBslStreamIfNecessary(org.eclipse.xtext.resource.XtextResource bslResource, InputStream inputStream, Map<?,?> options)
Replaces the BSL input stream if necessary
-
-
-
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 benull
inputStream
- The original input stream. May not benull
options
- The loadding options. May benull
- 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 benull
inputStream
- The original input stream. May not benull
- Returns:
- The replaced stream if necessary. Otherwise should return the original stream. Never
null
-
-