Interface IBslDocumentProviderExtension


  • public interface IBslDocumentProviderExtension
    Extension for the BslDocumentationProvider. Used for editor's direct file operations overriding
    • Method Detail

      • afterSaveDocument

        void afterSaveDocument​(BslDocumentProviderSaveDocumentExtensionContext context,
                               org.eclipse.core.runtime.IProgressMonitor monitor,
                               Object element,
                               boolean overwrite)
        Performs processing after onSaveDocument call.
        Parameters:
        context - The context object. May be null
        monitor - The progress monitor. May not be null
        element - The element to save. May not be null
        overwrite - The overwrite flag
      • beforeSaveDocument

        void beforeSaveDocument​(BslDocumentProviderSaveDocumentExtensionContext context,
                                org.eclipse.core.runtime.IProgressMonitor monitor,
                                Object element,
                                boolean overwrite)
        Performs processing before onSaveDocument call.
        Parameters:
        monitor - The progress monitor. May not be null
        element - The element to save. May not be null
        document - The document to save. May not be null
        overwrite - The overwrite flag
      • replaceStreamOnDocumentLoad

        InputStream replaceStreamOnDocumentLoad​(org.eclipse.core.resources.IFile file,
                                                InputStream originalStream)
        Replaces strram on document loading
        Parameters:
        file - The source file. May not be null
        originalStream - The stream provided by the provider. May not be null
        Returns:
        The original stream or a new stream provided by the extension. May be null
      • onConnect

        void onConnect​(BslXtextDocumentProvider provider,
                       org.eclipse.ui.IEditorInput editorInput)
        Called on connection of the BSL xtext document provider (e.g. creation of a new editor)
        Parameters:
        provider - The target provider. May not be null
        editorInput - The editor input. May be null
      • onDisconnect

        void onDisconnect​(BslXtextDocumentProvider provider,
                          org.eclipse.ui.IEditorInput editorInput)
        Called on disconnection of the BSL xtext document provider (e.g. closing of an existing editor)
        Parameters:
        provider - The target provider. May not be null
        editorInput - The editor input. May be null