Class GraphicalSchemeBmContentImporter

    • Constructor Detail

      • GraphicalSchemeBmContentImporter

        @Inject
        public GraphicalSchemeBmContentImporter​(IResourceContentImporter.IMergeStrategy mergeStrategy,
                                                IQualifiedNameFilePathConverter qualifiedNameFilePathConverter,
                                                ISymbolicNameService symbolicNameService,
                                                IRuntimeVersionSupport runtimeVersionSupport,
                                                IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
        Constructs a new instance.
        Parameters:
        mergeStrategy - the merge strategy to use, may not be null.
        qualifiedNameFilePathConverter - the qualified name file path converter to use, may not be null.
        symbolicNameService - the symbolic name service to use, may not be null.
        runtimeVersionSupport - the runtime version support to use, may not be null.
        resourceContentImporterExtensionManager - the import extensions manager, may not be null.
    • Method Detail

      • getOrder

        public int getOrder()
        Description copied from interface: IResourceContentImporter
        Gets importer order. The lower the order value is, the earlier tasks created by this importer must be processed.
        Specified by:
        getOrder in interface IResourceContentImporter
        Returns:
        the order value.
      • 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.
      • createTasks

        public Collection<? extends IResourceContentImporter.IImportTask> createTasks​(Collection<org.eclipse.core.runtime.IPath> affectedPaths)
        Description copied from interface: IResourceContentImporter
        Creates tasks based on the specified collection of affected (created, modified, deleted) resource paths. The returned tasks can be processed in parallel. In case the affectedPaths contains unsupported resources the behaviour of this method is not specified.
        Specified by:
        createTasks in interface IResourceContentImporter
        Parameters:
        affectedPaths - The affected resource paths. May not be null.
        Returns:
        a collection of tasks. Never null.
      • processTask

        public void processTask​(IBmEngine engine,
                                IBmTransaction transaction,
                                IDtProject project,
                                IResourceContentImporter.IImportTask task,
                                IResourceAccessor resourceAccessor,
                                boolean fullOverride)
        Description copied from interface: IResourceContentImporter
        Processes the specified import task. In case the task has not been created by this importer, the behaviour of this method is not specified.
        Specified by:
        processTask in interface IResourceContentImporter
        Parameters:
        engine - The BM engine to import the object into. May not be null.
        transaction - The BM transaction to import the object within. May not be null.
        project - The project the object belongs to. May not be null.
        task - The task. May not be null.
        resourceAccessor - The accessor to use to obtain the resource content etc. May not be null.
        fullOverride - The flag indicating that the full override strategy rather that merge must be used in case the object already exists.