Class SpreadsheetDocumentImporter

java.lang.Object
com._1c.g5.v8.dt.core.provider.BmContentImportSupport
com._1c.g5.v8.dt.internal.moxel.resource.SpreadsheetDocumentImporter
All Implemented Interfaces:
IResourceContentImporter

public final class SpreadsheetDocumentImporter extends BmContentImportSupport implements IResourceContentImporter
Imports moxel data from the internal XML presentation
  • Constructor Details

  • Method Details

    • computeSignature

      public byte[] computeSignature(InputStream content)
      Description copied from interface: IResourceContentImporter
      Computes signature.
      Specified by:
      computeSignature in interface IResourceContentImporter
      Parameters:
      content - The imported content stream. May not be null
      Returns:
      A signature of the content. May be empty or null
    • getPipelineSegment

      public String getPipelineSegment()
      Description copied from interface: IResourceContentImporter
      Gets the name of the async pipeline segment for this importer to run
      Specified by:
      getPipelineSegment in interface IResourceContentImporter
      Returns:
      The target async pipeline segment. Never null
    • dependsOn

      public Set<String> dependsOn()
      Description copied from interface: IResourceContentImporter
      Gets a dependency list of the importer. Dependencies are being defined in the form of async processing pipeline segment identifiers
      Specified by:
      dependsOn in interface IResourceContentImporter
      Returns:
      The collection of dependencies. Never null. May be empty
    • getPipelineSegmentImportDescription

      public String getPipelineSegmentImportDescription()
      Description copied from interface: IResourceContentImporter
      Gets a human-readable description of the importing segment to be shown to the user
      Specified by:
      getPipelineSegmentImportDescription in interface IResourceContentImporter
      Returns:
      The description of an import stage. Never null
    • handleResourceCreationOrModification

      public byte[] handleResourceCreationOrModification(IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, Supplier<InputStream> contentSupplier, boolean fullOverride, boolean executeInGlobalContext)
      Description copied from interface: IResourceContentImporter
      Handles resource creation or modification.
      Specified by:
      handleResourceCreationOrModification in interface IResourceContentImporter
      Parameters:
      namespace - The target IBmNamespace. May not be null
      project - The target IDtProject. May not be null
      path - The imported resource path. May not be null
      contentSupplier - The imported content supplier. May not be null. Implementations should support any number of context requests to support the re-import process in case of BM deadlocks
      fullOverride - The full override mode switch. The full override mode replaces content of an old object completelly without merge
      executeInGlobalContext - The global editing context execution flag
      Returns:
      A signature of the imported content. May be null or empty
    • handleResourceDeletion

      public void handleResourceDeletion(IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, boolean executeInGlobalContext)
      Description copied from interface: IResourceContentImporter
      Handles resource deletion.
      Specified by:
      handleResourceDeletion in interface IResourceContentImporter
      Parameters:
      namespace - The target IBmNamespace. May not be null
      project - The target IDtProject. May not be null
      path - The imported resource path. May not be null
      executeInGlobalContext - The global editing context execution flag
    • supports

      public boolean supports(org.eclipse.core.runtime.IPath path)
      Description copied from interface: IResourceContentImporter
      Checks if this importer supports the specified resource.
      Specified by:
      supports in interface IResourceContentImporter
      Parameters:
      path - The path to the resource to check. May not be null.
      Returns:
      true if the resource is supported, false otherwise.