Package com.e1c.langtool.v8.dt.cli.api
Interface IImportLanguageProjectApi
- All Known Implementing Classes:
ImportLanguageProjectApi
public interface IImportLanguageProjectApi
Helper API for import language projects operations.
-
Method Summary
Modifier and TypeMethodDescriptionfindProjectsRecursively(@NonNull List<Path> projectPaths) Finds projects recursively.org.eclipse.core.resources.IProjectimportLanguageProject(@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 benull- 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 benull- 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 benull- Returns:
- the collection. Can not be
null - Throws:
TranslationCliApiException- the translation cli api exception
-