Class GraphicalSchemeBmContentImporter
- java.lang.Object
-
- com._1c.g5.v8.dt.bp.scheme.xml.serialization.import_.GraphicalSchemeBmContentImporter
-
- All Implemented Interfaces:
IResourceContentImporter
public final class GraphicalSchemeBmContentImporter extends Object implements IResourceContentImporter
IResourceContentImporter
implementation for graphical scheme (bp scheme).
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
IResourceContentImporter.IImportTask, IResourceContentImporter.IMergeStrategy
-
-
Field Summary
-
Fields inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
PLATFORM_VERSION
-
-
Constructor Summary
Constructors Constructor Description GraphicalSchemeBmContentImporter(IResourceContentImporter.IMergeStrategy mergeStrategy, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter, ISymbolicNameService symbolicNameService, IRuntimeVersionSupport runtimeVersionSupport, IResourceContentImporterExtensionManager resourceContentImporterExtensionManager)
Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<? extends IResourceContentImporter.IImportTask>
createTasks(Collection<org.eclipse.core.runtime.IPath> affectedPaths)
Creates tasks based on the specified collection of affected (created, modified, deleted) resource paths.int
getOrder()
Gets importer order.void
processTask(IBmEngine engine, IBmTransaction transaction, IDtProject project, IResourceContentImporter.IImportTask task, IResourceAccessor resourceAccessor, boolean fullOverride)
Processes the specified import task.boolean
supports(org.eclipse.core.runtime.IPath path)
Checks if this importer supports the specified resource.
-
-
-
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 benull
.qualifiedNameFilePathConverter
- the qualified name file path converter to use, may not benull
.symbolicNameService
- the symbolic name service to use, may not benull
.runtimeVersionSupport
- the runtime version support to use, may not benull
.resourceContentImporterExtensionManager
- the import extensions manager, may not benull
.
-
-
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 interfaceIResourceContentImporter
- 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 interfaceIResourceContentImporter
- Parameters:
path
- The path to the resource to check. May not benull
.- 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 theaffectedPaths
contains unsupported resources the behaviour of this method is not specified.- Specified by:
createTasks
in interfaceIResourceContentImporter
- Parameters:
affectedPaths
- The affected resource paths. May not benull
.- 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 interfaceIResourceContentImporter
- Parameters:
engine
- The BM engine to import the object into. May not benull
.transaction
- The BM transaction to import the object within. May not benull
.project
- The project the object belongs to. May not benull
.task
- The task. May not benull
.resourceAccessor
- The accessor to use to obtain the resource content etc. May not benull
.fullOverride
- The flag indicating that the full override strategy rather that merge must be used in case the object already exists.
-
-