Class V8FileNameConverter

java.lang.Object
com.e1c.langtool.v8.dt.resourcestorage.AbstractV8FileNameConverter
com.e1c.langtool.v8.dt.resourcestorage.V8FileNameConverter
All Implemented Interfaces:
IV8FileNameConverter

public class V8FileNameConverter extends AbstractV8FileNameConverter
The Class V8FileNameConverter main converter to context translation files.
  • Constructor Details

    • V8FileNameConverter

      public V8FileNameConverter()
  • Method Details

    • getTranslationPath

      public org.eclipse.core.runtime.IPath getTranslationPath(org.eclipse.core.runtime.IPath v8Path, boolean isLocalizable, TranslateLanguage language)
      Description copied from interface: IV8FileNameConverter
      Gets the translation path.
      Parameters:
      v8Path - the v8 path, cannot be null.
      isLocalizable - the is localizable
      language - the language, cannot be null.
      Returns:
      the translation path. It can return null when it's impossible to get a path to translation file from the given path.
    • getV8Path

      public Set<org.eclipse.core.runtime.IPath> getV8Path(org.eclipse.core.runtime.IPath translationPath)
      Description copied from interface: IV8FileNameConverter
      Gets the v8 file path by the given translation file path. Caller could not to check that given file path is translation file.
      Specified by:
      getV8Path in interface IV8FileNameConverter
      Overrides:
      getV8Path in class AbstractV8FileNameConverter
      Parameters:
      translationPath - the translation path
      Returns:
      all possible v8 files converted from translation file. Can return null or empty Set.
    • getNameSegment

      protected static String getNameSegment(org.eclipse.core.runtime.IPath path)