Package com.e1c.langtool.storage
Interface ITranslationStorageManager
- All Known Implementing Classes:
TranslationStorageManager
public interface ITranslationStorageManager
The Interface ITranslationStorageManager.
Allows to get registered providers and Storages for the given project.
Collect all default storage IDs from all providers.
-
Method Summary
Modifier and TypeMethodDescription@NonNull Collection<ITranslationStorageProvider>All storage providers available in the system.@Nullable ITranslationStorageProvider.StoragegetStorage(@NonNull org.eclipse.core.resources.IProject project, @NonNull StorageID id) Gets the storage.getStorageIds(@NonNull org.eclipse.core.resources.IProject project) Gets all the storage ids with default sorting.@Nullable ITranslationStorageProvidergetStorageProvider(@NonNull StorageID id) Gets the storage provider.@Nullable ITranslationStorageProvidergetStorageProvider(@NonNull String id) 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.booleanisDefaultEnable(@NonNull StorageID id) Checks if the provider is enable by default.
-
Method Details
-
getStorageIds
Gets all the storage ids with default sorting.- Parameters:
project- the project- Returns:
- the storage ids
-
getStorageProvider
Gets the storage provider.- Parameters:
id- the id of provider- Returns:
- the storage provider
-
getStorageProvider
Gets the storage provider.- Parameters:
id- the storage id- Returns:
- the storage provider
-
getStorage
@Nullable ITranslationStorageProvider.Storage getStorage(@NonNull org.eclipse.core.resources.IProject project, @NonNull StorageID id) Gets the storage.- Parameters:
project- the projectid- the storage id- Returns:
- the storage
-
isDefaultEnable
Checks if the provider is enable by default.- Parameters:
id- the id- Returns:
- true, if the provider is enable by default
-
allStorageProviders
@NonNull Collection<ITranslationStorageProvider> allStorageProviders()All storage providers available in the system.- Returns:
- the collection of storage providers available in the system, cannot return
null.
-
getTranslationReader
@NonNull IProjectTranslationReader getTranslationReader(@NonNull org.eclipse.core.resources.IProject project) Gets the project translation reader, allows to read translations according project settings.- Parameters:
project- the project, cannot benull.- Returns:
- the translation reader, cannot return
null.
-