Class DcsV8ImporterExtension
java.lang.Object
com.e1c.langtool.v8.dt.internal.dcs.i18n.DcsV8ImporterExtension
- All Implemented Interfaces:
IBmContentImporterExtension,IResourceContentImporterExtension
This extension intercept V8
*.dcs files load, and replace all non-multanguage Presentation entries with multilanugage one.-
Constructor Summary
ConstructorsConstructorDescriptionDcsV8ImporterExtension(ITranslatingProjectManager translatingProjectManager, ITranslationFeatureKeyProvider featureKeyProvider, IStorageSettingsManager storageSettingsManager, ITranslationStorageManager storageManager, DcsExprFeatureKeyComputer2 featureKeyComputer, IResourceLookup resourceLookup) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterImport(IBmEngine engine, IBmTransaction transaction, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IPath path, IBmObject importedObject) After import aIBmObjectinto BM.Collection<org.eclipse.emf.ecore.EClass>targets()Gets the target EObject EClasses which should extends on import into BM.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.e1c.langtool.v8.dt.core.ext.IBmContentImporterExtension
beforeImportFileExtensionsMethods inherited from interface com.e1c.langtool.v8.dt.core.ext.IResourceContentImporterExtension
beforeImport
-
Constructor Details
-
DcsV8ImporterExtension
@Inject public DcsV8ImporterExtension(ITranslatingProjectManager translatingProjectManager, ITranslationFeatureKeyProvider featureKeyProvider, IStorageSettingsManager storageSettingsManager, ITranslationStorageManager storageManager, DcsExprFeatureKeyComputer2 featureKeyComputer, IResourceLookup resourceLookup) - Parameters:
translatingProjectManager-featureKeyProvider-storageSettingsManager-storageManager-featureKeyComputer-
-
-
Method Details
-
afterImport
public void afterImport(IBmEngine engine, IBmTransaction transaction, org.eclipse.emf.ecore.resource.Resource resource, org.eclipse.core.runtime.IPath path, IBmObject importedObject) Description copied from interface:IResourceContentImporterExtensionAfter import aIBmObjectinto BM.- Specified by:
afterImportin interfaceIResourceContentImporterExtension- Parameters:
engine- the enginetransaction- the transactionresource- the resourcepath- Path to the fileimportedObject- the imported object
-
targets
Description copied from interface:IBmContentImporterExtensionGets the target EObject EClasses which should extends on import into BM.- Specified by:
targetsin interfaceIBmContentImporterExtension- Returns:
- the collection of target EClasses
-