Class ImportLanguageProjectApi
java.lang.Object
com.e1c.langtool.v8.dt.cli.api.impl.ImportLanguageProjectApi
- All Implemented Interfaces:
IImportLanguageProjectApi
Helper API for import language projects operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindProjectsRecursively(List<Path> projectPaths) Finds projects recursively.org.eclipse.core.resources.IProjectimportLanguageProject(Path languageProject) Imports language project from the provided project path or project zip archive.Collection<org.eclipse.core.resources.IProject>importLanguageProjects(List<Path> languageProjects) Imports language projects from provided project paths or project zip archives.
-
Constructor Details
-
ImportLanguageProjectApi
public ImportLanguageProjectApi()
-
-
Method Details
-
importLanguageProjects
public Collection<org.eclipse.core.resources.IProject> importLanguageProjects(List<Path> languageProjects) throws TranslationCliApiException Description copied from interface:IImportLanguageProjectApiImports language projects from provided project paths or project zip archives.- Specified by:
importLanguageProjectsin interfaceIImportLanguageProjectApi- 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
public org.eclipse.core.resources.IProject importLanguageProject(Path languageProject) throws TranslationCliApiException Description copied from interface:IImportLanguageProjectApiImports language project from the provided project path or project zip archive.- Specified by:
importLanguageProjectin interfaceIImportLanguageProjectApi- 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
Description copied from interface:IImportLanguageProjectApiFinds projects recursively.- Specified by:
findProjectsRecursivelyin interfaceIImportLanguageProjectApi- Parameters:
projectPaths- the project paths. Can not benull- Returns:
- the collection. Can not be
null
-