Interface IImportLanguageProjectApi

All Known Implementing Classes:
ImportLanguageProjectApi

public interface IImportLanguageProjectApi
Helper API for import language projects operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    findProjectsRecursively(@NonNull List<Path> projectPaths)
    Finds projects recursively.
    org.eclipse.core.resources.IProject
    importLanguageProject(@NonNull Path languageProject)
    Imports language project from the provided project path or project zip archive.
    Collection<org.eclipse.core.resources.IProject>
    importLanguageProjects(@NonNull List<Path> languageProjects)
    Imports language projects from provided project paths or project zip archives.
  • Method Details

    • importLanguageProjects

      Collection<org.eclipse.core.resources.IProject> importLanguageProjects(@NonNull List<Path> languageProjects) throws TranslationCliApiException
      Imports language projects from provided project paths or project zip archives.
      Parameters:
      languageProjects - the language projects. Can not be null
      Returns:
      a collection of imported language projects. Can not be null
      Throws:
      TranslationCliApiException - the translation CLI API exception will be thrown if provided location does not contain dependent project in EDT format
    • importLanguageProject

      org.eclipse.core.resources.IProject importLanguageProject(@NonNull Path languageProject) throws TranslationCliApiException
      Imports language project from the provided project path or project zip archive.
      Parameters:
      languageProject - the language project. Can not be null
      Returns:
      the imported language project. Can be null
      Throws:
      TranslationCliApiException - the translation CLI API exception will be thrown if provided location does not contain dependent project in EDT format
    • findProjectsRecursively

      Collection<File> findProjectsRecursively(@NonNull List<Path> projectPaths) throws TranslationCliApiException
      Finds projects recursively.
      Parameters:
      projectPaths - the project paths. Can not be null
      Returns:
      the collection. Can not be null
      Throws:
      TranslationCliApiException - the translation cli api exception