Interface IResourceContentExporterExtension


  • public interface IResourceContentExporterExtension
    Resource content exporter extension. Allows to extend the logic of BM objects import
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default void afterExport​(IBmModel model, IBmObject bmObject, IBmObject clone, org.eclipse.core.resources.IFile file, Collection<org.eclipse.core.resources.IFile> exportedExtraFiles)
      The method is being called right after the export of the provided object
      default void afterExport​(org.eclipse.emf.ecore.EObject object, org.eclipse.core.resources.IFile file, Version runtimeVersion)
      The method is being called right after the export of the provided object.
      default void beforeExport​(IBmModel model, IBmObject bmObject, IBmObject clone, org.eclipse.core.resources.IFile file, Collection<org.eclipse.core.resources.IFile> exportedExtraFiles)
      The method is being called before the export of the provided object.
      default void beforeExport​(org.eclipse.emf.ecore.EObject object, org.eclipse.core.resources.IFile file, Version runtimeVersion)
      The method is being called before the export of the provided object.
    • Method Detail

      • afterExport

        default void afterExport​(org.eclipse.emf.ecore.EObject object,
                                 org.eclipse.core.resources.IFile file,
                                 Version runtimeVersion)
        The method is being called right after the export of the provided object. This methods is called for non-BM stored objects/non-standard objects like spreadsheet document, etc
        Parameters:
        object - The object that is being exported. May not be null
        file - The target source file. May not be null
        runtimeVersion - The runtime version of the configuration. May not be null
      • afterExport

        default void afterExport​(IBmModel model,
                                 IBmObject bmObject,
                                 IBmObject clone,
                                 org.eclipse.core.resources.IFile file,
                                 Collection<org.eclipse.core.resources.IFile> exportedExtraFiles)
        The method is being called right after the export of the provided object
        Parameters:
        model - The source IBmModel for the object being exported. May not be null
        bmObject - The source IBmObject that is being exported. May not be null
        clone - The cloned object that is actually is serialized. This object may be modified by the extension. May not be null
        file - The target source file. May not be null
        exportedExtraFiles - The list of additonal files being exported as a result. The extension could add files into it during this phase. May not be null
      • beforeExport

        default void beforeExport​(org.eclipse.emf.ecore.EObject object,
                                  org.eclipse.core.resources.IFile file,
                                  Version runtimeVersion)
        The method is being called before the export of the provided object. The object could be modified in this method. This methods is called for non-BM stored objects/non-standard objects like spreadsheet document, etc
        Parameters:
        object - The object that is being exported. May not be null
        file - The target source file. May not be null
        runtimeVersion - The runtime version of the configuration. May not be null
      • beforeExport

        default void beforeExport​(IBmModel model,
                                  IBmObject bmObject,
                                  IBmObject clone,
                                  org.eclipse.core.resources.IFile file,
                                  Collection<org.eclipse.core.resources.IFile> exportedExtraFiles)
        The method is being called before the export of the provided object. The clone could be modified in this method
        Parameters:
        model - The source IBmModel for the object being exported. May not be null
        bmObject - The source IBmObject that is being exported. May not be null
        clone - The cloned object that is actually is serialized. This object may be modified by the extension. May not be null
        file - The target source file. May not be null
        exportedExtraFiles - The list of additonal files being exported as a result. The extension could add files into it. May not be null