Class 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 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 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