Class ProjectUtils

java.lang.Object
com.e1c.langtool.v8.dt.internal.cli.api.impl.ProjectUtils

public class ProjectUtils extends Object
  • 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: supportedLanguages with languages supported by translating project and unsupportedLanguageIds with 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:
      true if at least one of languages passed in argsLanguages is supported by project, false otherwise.
    • waitForBuildCompletion

      public static void waitForBuildCompletion(org.eclipse.core.resources.IProject project) throws org.eclipse.core.runtime.CoreException
      Throws:
      org.eclipse.core.runtime.CoreException
    • isDependentProject

      public static boolean isDependentProject(Path location)
    • findProjectsRecursively

      public static Collection<File> findProjectsRecursively(Collection<Path> projectDirs)
      Find project files recursively by given list of directories.
      Parameters:
      projectDirs - the project directories
      Returns:
      the collection of .../ProjectName/.project files, cannot return null.