Class LanguageCleaner

java.lang.Object
com.e1c.langtool.v8.dt.languageprocessor.LanguageProcessor
com.e1c.langtool.v8.dt.languagecleaner.LanguageCleaner

public class LanguageCleaner extends LanguageProcessor
A class for deleting languages and cleaning up their translations.
  • Constructor Details

    • LanguageCleaner

      public LanguageCleaner()
  • Method Details

    • createBmProcessorTask

      protected AbstractBmTask<Void> createBmProcessorTask(org.eclipse.core.resources.IProject project, org.eclipse.emf.ecore.EPackage ePackage, Set<Long> bmFeatures, LanguageProcessorParameters parameters)
      Description copied from class: LanguageProcessor
      Creates the bm processor task.
      Specified by:
      createBmProcessorTask in class LanguageProcessor
      Parameters:
      project - the project, cannot be null
      ePackage - the e package, cannot be null
      bmFeatures - the bm features, cannot be null
      parameters - the parameters, cannot be null
      Returns:
      the abstract bm task, can be null
    • createNonBmProcessorTask

      protected AbstractBmTask<Void> createNonBmProcessorTask(org.eclipse.emf.ecore.EPackage ePackage, Set<org.eclipse.emf.common.util.URI> bmFeatures, LanguageProcessorParameters parameters)
      Description copied from class: LanguageProcessor
      Creates the non bm processor task.
      Specified by:
      createNonBmProcessorTask in class LanguageProcessor
      Parameters:
      ePackage - the e package, cannot be null
      bmFeatures - the bm features, cannot be null
      parameters - the parameters, cannot be null
      Returns:
      the abstract bm task, can be null
    • cleanUpLanguages

      public void cleanUpLanguages(org.eclipse.core.resources.IProject project, Collection<Language> languages, boolean keepLanguages, org.eclipse.core.runtime.IProgressMonitor monitor)
      Cleans up languages.
      Parameters:
      project - the project, cannot be null
      languages - that must be clean up or keep without default language, cannot be null
      keepLanguages - the languages keep mode, all languages except those specified in list of languages and the default language will be cleared and deleted
      monitor - the monitor, cannot be null