Class AbstractLstrContentImporter
java.lang.Object
com._1c.g5.v8.dt.core.provider.BmContentImportSupport
com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
com.e1c.langtool.v8.dt.ls.importer.AbstractLstrContentImporter
- All Implemented Interfaces:
IResourceContentImporter
- Direct Known Subclasses:
LsDataContentImporter
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
BmContentImportSupport.ILoadOptionsProvider, BmContentImportSupport.LoadedData, BmContentImportSupport.NonCloseableHashingInputStreamNested classes/interfaces inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
IResourceContentImporter.IMergeStrategy -
Field Summary
FieldsFields inherited from class com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
OTHER_SEGMENTFields inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
PIPELINE_SEGMENT_PREFIX, PLATFORM_VERSION -
Constructor Summary
ConstructorsConstructorDescriptionAbstractLstrContentImporter(IBmModelManager bmModelManager, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter) -
Method Summary
Modifier and TypeMethodDescriptionGets a dependency list of the importer.protected static voidfillupEmptyInterface(TranslationProperties properties, org.eclipse.emf.common.util.EMap<String, String> values, TranslateLanguage language) protected ITranslationStorageProvider.StoragegetCurrentStorage(org.eclipse.core.resources.IProject project) Gets the name of the async pipeline segment for this importer to runprotected byte[]handleResourceCreationOrModification(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, InputStream content, boolean fullOverride) Handles a data import process for an imported resourceprotected voidhandleResourceDeletion(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path) Handles a data removal process for a removed resourceprotected voidimportInterfaces(org.eclipse.emf.ecore.EObject obj, org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project, ITranslationStorageProvider.Storage storage, Collection<TranslateLanguage> languages) booleansupports(org.eclipse.core.runtime.IPath path) Checks if this importer supports the specified resource.Methods inherited from class com._1c.g5.v8.dt.core.provider.TransactionalBmContentImporter
computeSignature, handleResourceCreationOrModification, handleResourceDeletion, loadDataMethods inherited from class com._1c.g5.v8.dt.core.provider.BmContentImportSupport
computeSha256Hash, doResourceLoad, executeImportInContextIfNecessary, executeTaskInContextIfNecessary, forceDerivedDataRebuild, getRuntimeVersion, resolveFqnMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com._1c.g5.v8.dt.core.provider.IResourceContentImporter
getPipelineSegmentImportDescription
-
Field Details
-
LSTR_EXT
- See Also:
-
-
Constructor Details
-
AbstractLstrContentImporter
@Inject public AbstractLstrContentImporter(IBmModelManager bmModelManager, IQualifiedNameFilePathConverter qualifiedNameFilePathConverter)
-
-
Method Details
-
getPipelineSegment
Description copied from interface:IResourceContentImporterGets the name of the async pipeline segment for this importer to run- Specified by:
getPipelineSegmentin interfaceIResourceContentImporter- Overrides:
getPipelineSegmentin classTransactionalBmContentImporter- Returns:
- The target async pipeline segment. Never
null
-
dependsOn
Description copied from interface:IResourceContentImporterGets a dependency list of the importer. Dependencies are being defined in the form of async processing pipeline segment identifiers- Specified by:
dependsOnin interfaceIResourceContentImporter- Overrides:
dependsOnin classTransactionalBmContentImporter- Returns:
- The collection of dependencies. Never
null. May be empty
-
supports
public boolean supports(org.eclipse.core.runtime.IPath path) Description copied from interface:IResourceContentImporterChecks if this importer supports the specified resource.- Parameters:
path- The path to the resource to check. May not benull.- Returns:
trueif the resource is supported,falseotherwise.
-
getCurrentStorage
protected ITranslationStorageProvider.Storage getCurrentStorage(org.eclipse.core.resources.IProject project) -
importInterfaces
protected void importInterfaces(org.eclipse.emf.ecore.EObject obj, org.eclipse.core.runtime.IPath path, org.eclipse.core.resources.IProject project, ITranslationStorageProvider.Storage storage, Collection<TranslateLanguage> languages) -
fillupEmptyInterface
protected static void fillupEmptyInterface(TranslationProperties properties, org.eclipse.emf.common.util.EMap<String, String> values, TranslateLanguage language) -
handleResourceCreationOrModification
protected byte[] handleResourceCreationOrModification(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path, InputStream content, boolean fullOverride) Description copied from class:TransactionalBmContentImporterHandles a data import process for an imported resource- Specified by:
handleResourceCreationOrModificationin classTransactionalBmContentImporter- Parameters:
transaction- The data import BM transaction. Nevernullnamespace- The target BM namespace for an import. Nevernullproject- The targetIDtProject. Nevernullpath- The imported resource path. May not benullcontent- The imported content stream. May not benullfullOverride- Data full override import mode- Returns:
- Signature of imported data. Never
null
-
handleResourceDeletion
protected void handleResourceDeletion(IBmPlatformTransaction transaction, IBmNamespace namespace, IDtProject project, org.eclipse.core.runtime.IPath path) Description copied from class:TransactionalBmContentImporterHandles a data removal process for a removed resource- Specified by:
handleResourceDeletionin classTransactionalBmContentImporter- Parameters:
transaction- The data import BM transaction. Nevernullnamespace- The target BM namespace for an import. Nevernullproject- TargetIDtProject. Nevernullpath- The removed resource path. May not benull
-