Class TranslationStorageManager
java.lang.Object
com.e1c.langtool.internal.storage.TranslationStorageManager
- All Implemented Interfaces:
ITranslationStorageManager
-
Constructor Summary
ConstructorsConstructorDescriptionTranslationStorageManager(SharedProjectReaderCache sharedProjectReaderCache) -
Method Summary
Modifier and TypeMethodDescriptionAll storage providers available in the system.getStorage(org.eclipse.core.resources.IProject project, StorageID id) Gets the storage.getStorageIds(org.eclipse.core.resources.IProject project) Gets all the storage ids with default sorting.Gets the storage provider.Gets the storage provider.@NonNull IProjectTranslationReadergetTranslationReader(@NonNull org.eclipse.core.resources.IProject project) Gets the project translation reader, allows to read translations according project settings.booleanChecks if the provider is enable by default.
-
Constructor Details
-
Method Details
-
getStorageIds
Description copied from interface:ITranslationStorageManagerGets all the storage ids with default sorting.- Specified by:
getStorageIdsin interfaceITranslationStorageManager- Parameters:
project- the project- Returns:
- the storage ids
-
getStorageProvider
Description copied from interface:ITranslationStorageManagerGets the storage provider.- Specified by:
getStorageProviderin interfaceITranslationStorageManager- Parameters:
id- the id of provider- Returns:
- the storage provider
-
getStorageProvider
Description copied from interface:ITranslationStorageManagerGets the storage provider.- Specified by:
getStorageProviderin interfaceITranslationStorageManager- Parameters:
id- the storage id- Returns:
- the storage provider
-
getStorage
public ITranslationStorageProvider.Storage getStorage(org.eclipse.core.resources.IProject project, StorageID id) Description copied from interface:ITranslationStorageManagerGets the storage.- Specified by:
getStoragein interfaceITranslationStorageManager- Parameters:
project- the projectid- the storage id- Returns:
- the storage
-
allStorageProviders
Description copied from interface:ITranslationStorageManagerAll storage providers available in the system.- Specified by:
allStorageProvidersin interfaceITranslationStorageManager- Returns:
- the collection of storage providers available in the system, cannot return
null.
-
isDefaultEnable
Description copied from interface:ITranslationStorageManagerChecks if the provider is enable by default.- Specified by:
isDefaultEnablein interfaceITranslationStorageManager- Parameters:
id- the id- Returns:
- true, if the provider is enable by default
-
getTranslationReader
public @NonNull IProjectTranslationReader getTranslationReader(@NonNull org.eclipse.core.resources.IProject project) Description copied from interface:ITranslationStorageManagerGets the project translation reader, allows to read translations according project settings.- Specified by:
getTranslationReaderin interfaceITranslationStorageManager- Parameters:
project- the project, cannot benull.- Returns:
- the translation reader, cannot return
null.
-