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 ofDiagnosticChain
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(org.eclipse.emf.common.util.Diagnostic diagnostic)
void
addAll(org.eclipse.emf.common.util.Diagnostic diagnostic)
void
commit()
Commits the accumulated diagnostics, i.e.List<org.eclipse.emf.common.util.Diagnostic>
getDiagnostics()
Returns diagnostics.void
merge(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:
add
in interfaceorg.eclipse.emf.common.util.DiagnosticChain
-
addAll
public void addAll(org.eclipse.emf.common.util.Diagnostic diagnostic)
- Specified by:
addAll
in 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:
merge
in interfaceorg.eclipse.emf.common.util.DiagnosticChain
-
-