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 of
DiagnosticChain
intended to preserve
backward compatibility with the legacy code.-
Constructor Summary
ConstructorsConstructorDescriptionBmDiagnosticChain
(org.eclipse.core.resources.IProject project, IMarkerManager manager, IBmObject object, String source) Constructs a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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. 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)
-
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 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
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
-