Package com._1c.g5.v8.dt.validation
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 ofDiagnosticChainintended 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(org.eclipse.emf.common.util.Diagnostic diagnostic)voidaddAll(org.eclipse.emf.common.util.Diagnostic diagnostic)voidcommit()Commits the accumulated diagnostics, i.e.List<org.eclipse.emf.common.util.Diagnostic>getDiagnostics()Returns diagnostics.voidmerge(org.eclipse.emf.common.util.Diagnostic diagnostic)
-
-
-
Constructor Detail
-
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 Detail
-
add
public void add(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Specified by:
addin interfaceorg.eclipse.emf.common.util.DiagnosticChain
-
addAll
public void addAll(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Specified by:
addAllin interfaceorg.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:
mergein interfaceorg.eclipse.emf.common.util.DiagnosticChain
-
-