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 Details

    • getStorageIds

      @NonNull List<StorageID> getStorageIds(@NonNull org.eclipse.core.resources.IProject project)
      Gets all the storage ids with default sorting.
      Parameters:
      project - the project
      Returns:
      the storage ids
    • getStorageProvider

      @Nullable ITranslationStorageProvider getStorageProvider(@NonNull String id)
      Gets the storage provider.
      Parameters:
      id - the id of provider
      Returns:
      the storage provider
    • getStorageProvider

      @Nullable ITranslationStorageProvider getStorageProvider(@NonNull StorageID id)
      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 project
      id - the storage id
      Returns:
      the storage
    • isDefaultEnable

      boolean isDefaultEnable(@NonNull StorageID id)
      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 be null.
      Returns:
      the translation reader, cannot return null.