Class ExtensionProjectTranslationProvider
java.lang.Object
com.e1c.langtool.v8.dt.translator.ProjectTranslationProvider
com.e1c.langtool.v8.dt.extension.translator.ExtensionProjectTranslationProvider
- All Implemented Interfaces:
IProjectTranslationProvider
-
Field Summary
Fields inherited from class com.e1c.langtool.v8.dt.translator.ProjectTranslationProvider
computedNameService, computedNameTranslationService, featureKeyProvider, ignoreService, preferences, resourceLookup, storageManager -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExtensionProjectTranslationProvider(ITranslatedV8Project translatedProject) -
Method Summary
Modifier and TypeMethodDescriptioncreate(ITranslatedV8Project translatedProject) Low-level factory to creates theExtensionProjectTranslationProviderinstance.protected ITranslatedExtensionProjectprotected IProjectTranslationReaderprotected org.eclipse.core.resources.IProjectprotected IExtensionProjectprotected StringgetStoredTranslationInternal(ContextTranslationKey key, TranslateLanguage language, ITranslationStorageProvider.Storage.Type... storageTypes) Gets the translation directly from storages.getTranslation(org.eclipse.emf.ecore.EObject source, EFeatureSettings featureSettings, TranslateLanguage language) Gets the translation for the given sourceEObject.Methods inherited from class com.e1c.langtool.v8.dt.translator.ProjectTranslationProvider
allCaches, getCache, getOptionalTranslation, getOptionalTranslation, getProject, getReader, getSourceProject, getStoredTranslation, getTranslationMethods 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.translator.IProjectTranslationProvider
dispose
-
Constructor Details
-
ExtensionProjectTranslationProvider
- Parameters:
translatedProject-
-
-
Method Details
-
create
Low-level factory to creates theExtensionProjectTranslationProviderinstance.- Parameters:
translatedProject- the translated project- Returns:
- the project translation provider
-
getTranslation
public String getTranslation(org.eclipse.emf.ecore.EObject source, EFeatureSettings featureSettings, TranslateLanguage language) Description copied from interface:IProjectTranslationProviderGets the translation for the given sourceEObject. It compute feature key and createsFeatureValueto get stored translation inITranslationStorageProvider.Storage- Specified by:
getTranslationin interfaceIProjectTranslationProvider- Overrides:
getTranslationin classProjectTranslationProvider- Parameters:
source- the source, cannot benull.featureSettings- the feature settings, cannot benull.language- the language, cannot benull.- Returns:
- the translation, may return
nullif has no translation.
-
getStoredTranslationInternal
protected String getStoredTranslationInternal(ContextTranslationKey key, TranslateLanguage language, ITranslationStorageProvider.Storage.Type... storageTypes) Description copied from class:ProjectTranslationProviderGets the translation directly from storages.- Overrides:
getStoredTranslationInternalin classProjectTranslationProvider- Parameters:
key- the key, cannot benull.language- the language, cannot benull.storageTypes- the storage types, can benullor empty array for all types.- Returns:
- the stored translation, should not return
null
-
getSourceExtensionProject
-
geExtensionProject
-
getBaseSourceProject
protected org.eclipse.core.resources.IProject getBaseSourceProject() -
getBaseReader
-