Class BslTranslationLogger

java.lang.Object
com.e1c.langtool.v8.dt.bsl.translator.BslTranslationLogger

public class BslTranslationLogger extends Object
Internal logger to save spesial information about semantic element if replace text or source matches pattern.
  • Constructor Details

  • Method Details

    • create

      public static BslTranslationLogger create(org.eclipse.core.resources.IFile moduleFile, IProjectTranslationProvider translationProvider)
    • needLogging

      public static boolean needLogging()
    • flush

      public void flush()
      Flush log information into file that creates path same as module project relative path.
    • log

      public void log(org.eclipse.xtext.nodemodel.ILeafNode node, String replace)
      Log current object context if RegEx matches replace or if replace empty and it matches node text. Also checks pair source text and translation if set in parameter list.
      Parameters:
      node - the node, cannot be null.
      replace - the replace, can be null.
    • logDocComment

      public void logDocComment(int offset, String source, String replace, Object docComment, org.eclipse.xtext.nodemodel.INode context)
      Log current doc comment object context info if RegEx matches replace or source text if replace empty. Also checks pair source text and translation if set in parameter list.
      Parameters:
      offset - the offset
      source - the source
      replace - the replace
      docComment - the doc comment
      context - the context node to register log