Class ProjectUtils
java.lang.Object
com.e1c.langtool.v8.dt.internal.cli.api.impl.ProjectUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandetermineTranslatingProjectSupportedLanguages(ITranslatingProject project, List<String> argsLanguages, List<TranslateLanguage> supportedLanguages, List<String> unsupportedLanguageIds) Receive list of language names and return two lists:supportedLanguageswith languages supported by translating project andunsupportedLanguageIdswith unsupported language codes.static Collection<File>findProjectsRecursively(Collection<Path> projectDirs) Find project files recursively by given list of directories.static booleanisDependentProject(Path location) static voidwaitForBuildCompletion(org.eclipse.core.resources.IProject project)
-
Constructor Details
-
ProjectUtils
public ProjectUtils()
-
-
Method Details
-
determineTranslatingProjectSupportedLanguages
public static boolean determineTranslatingProjectSupportedLanguages(ITranslatingProject project, List<String> argsLanguages, List<TranslateLanguage> supportedLanguages, List<String> unsupportedLanguageIds) Receive list of language names and return two lists:supportedLanguageswith languages supported by translating project andunsupportedLanguageIdswith unsupported language codes.- Parameters:
project- Translating project.argsLanguages- List of language names to examine.supportedLanguages- List to be filled with supported languages.unsupportedLanguageIds- List to be filled with unsupported language codes.- Returns:
trueif at least one of languages passed inargsLanguagesis supported by project,falseotherwise.
-
waitForBuildCompletion
public static void waitForBuildCompletion(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException - Throws:
org.eclipse.core.runtime.CoreException
-
isDependentProject
-
findProjectsRecursively
Find project files recursively by given list of directories.- Parameters:
projectDirs- the project directories- Returns:
- the collection of
.../ProjectName/.projectfiles, cannot returnnull.
-