Class BmDiagnosticChain

java.lang.Object
com._1c.g5.v8.dt.validation.BmDiagnosticChain
All Implemented Interfaces:
org.eclipse.emf.common.util.DiagnosticChain

public class BmDiagnosticChain extends Object implements org.eclipse.emf.common.util.DiagnosticChain
A custom implementation of DiagnosticChain intended to preserve backward compatibility with the legacy code.
  • Constructor Summary

    Constructors
    Constructor
    Description
    BmDiagnosticChain(org.eclipse.core.resources.IProject project, IMarkerManager manager, IBmObject object, String source)
    Constructs a new instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add(org.eclipse.emf.common.util.Diagnostic diagnostic)
    void
    addAll(org.eclipse.emf.common.util.Diagnostic diagnostic)
    void
    Commits the accumulated diagnostics, i.e. updates BM objects' marker lists and fires corresponding events.
    List<org.eclipse.emf.common.util.Diagnostic>
    Returns diagnostics.
    void
    merge(org.eclipse.emf.common.util.Diagnostic diagnostic)

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BmDiagnosticChain

      public BmDiagnosticChain(org.eclipse.core.resources.IProject project, IMarkerManager manager, IBmObject object, String source)
      Constructs a new instance.
      Parameters:
      model - the BM model the validated objects belong to.
      source - the marker source name.
  • Method Details

    • add

      public void add(org.eclipse.emf.common.util.Diagnostic diagnostic)
      Specified by:
      add in interface org.eclipse.emf.common.util.DiagnosticChain
    • addAll

      public void addAll(org.eclipse.emf.common.util.Diagnostic diagnostic)
      Specified by:
      addAll in interface org.eclipse.emf.common.util.DiagnosticChain
    • commit

      public void commit()
      Commits the accumulated diagnostics, i.e. updates BM objects' marker lists and fires corresponding events.
    • getDiagnostics

      public List<org.eclipse.emf.common.util.Diagnostic> getDiagnostics()
      Returns diagnostics.
      Returns:
      the diagnostics
    • merge

      public void merge(org.eclipse.emf.common.util.Diagnostic diagnostic)
      Specified by:
      merge in interface org.eclipse.emf.common.util.DiagnosticChain