Class CamelCaseInterfaceProvider
java.lang.Object
com.e1c.langtool.v8.dt.internal.camelcase.CamelCaseInterfaceProvider
- All Implemented Interfaces:
ICamelCaseInterfaceProvider
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCamelCaseInterfaceProvider(ITranslatingProject project, IFeatureValueCollectingService collectingService, ITranslatingProjectManager translatingProjectManager, ValidatorRegistry registry, ITranslationStorageManager storageManager) -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeData(org.eclipse.core.runtime.IProgressMonitor monitor) Compute data.booleanStatus of computed data.voiddispose()Delete storage.getAll(String source, TranslateLanguage sourceLanguage, TranslateLanguage targetLanguage, org.eclipse.core.runtime.IProgressMonitor monitor) Retrieve saved all translations for givensource.getFirst(String source, TranslateLanguage sourceLanguage, TranslateLanguage targetLanguage, org.eclipse.core.runtime.IProgressMonitor monitor) Retrieve saved translation for givensource.voidinvalidate(org.eclipse.core.resources.IFile resource) Invalidate resource in storagevoidstop()Stop storage.
-
Field Details
-
CACHE_FILE_PREFFIX
- See Also:
-
-
Constructor Details
-
CamelCaseInterfaceProvider
public CamelCaseInterfaceProvider(ITranslatingProject project, IFeatureValueCollectingService collectingService, ITranslatingProjectManager translatingProjectManager, ValidatorRegistry registry, ITranslationStorageManager storageManager)
-
-
Method Details
-
computeData
public void computeData(org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ICamelCaseInterfaceProviderCompute data.- Specified by:
computeDatain interfaceICamelCaseInterfaceProvider- Parameters:
monitor- the monitor
-
getFirst
public String getFirst(String source, TranslateLanguage sourceLanguage, TranslateLanguage targetLanguage, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ICamelCaseInterfaceProviderRetrieve saved translation for givensource. If storage has no source for given param then the empty string will be returned.- Specified by:
getFirstin interfaceICamelCaseInterfaceProvider- Parameters:
source- for whitch retrieve cached content, cannot benullsourceLanguage- source languagetargetLanguage- target languagemonitor- the monitor- Returns:
- saved translation with highest priority or empty string if no translation found in storage, never
null.
-
getAll
public List<String> getAll(String source, TranslateLanguage sourceLanguage, TranslateLanguage targetLanguage, org.eclipse.core.runtime.IProgressMonitor monitor) Description copied from interface:ICamelCaseInterfaceProviderRetrieve saved all translations for givensource. If storage has no source for given param then the empty list will be returned.- Specified by:
getAllin interfaceICamelCaseInterfaceProvider- Parameters:
source- for whitch retrieve cached content, cannot benullsourceLanguage- source languagetargetLanguage- target languagemonitor- the monitor- Returns:
- all saved translations in order of priority or empty list if no translations found in storage, never
null.
-
dispose
public void dispose()Description copied from interface:ICamelCaseInterfaceProviderDelete storage.- Specified by:
disposein interfaceICamelCaseInterfaceProvider
-
stop
public void stop()Description copied from interface:ICamelCaseInterfaceProviderStop storage.- Specified by:
stopin interfaceICamelCaseInterfaceProvider
-
dataComputed
public boolean dataComputed()Description copied from interface:ICamelCaseInterfaceProviderStatus of computed data.- Specified by:
dataComputedin interfaceICamelCaseInterfaceProvider- Returns:
- boolean, never
null
-
invalidate
public void invalidate(org.eclipse.core.resources.IFile resource) Description copied from interface:ICamelCaseInterfaceProviderInvalidate resource in storage- Specified by:
invalidatein interfaceICamelCaseInterfaceProvider
-