Class DiagnosticSupport
java.lang.Object
org.eclipse.emf.compare.ide.ui.internal.logical.resolver.DiagnosticSupport
Encapsulated a diagnostic to hide multi-threaded details.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor, will instantiate a default diagnostic.DiagnosticSupport(BasicDiagnostic diagnostic) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicDiagnosticCreates the BasicDiagnostic that will be used by this computation.voidmerge(Diagnostic resourceDiagnostic) Thread safely merge the given diagnostic to thediagnosticfield.
-
Constructor Details
-
DiagnosticSupport
Constructor.- Parameters:
diagnostic- The diagnostic to wrap, must not benull.
-
DiagnosticSupport
public DiagnosticSupport()Constructor, will instantiate a default diagnostic.
-
-
Method Details
-
getDiagnostic
-
createDiagnostic
Creates the BasicDiagnostic that will be used by this computation. Can be overridden if necessary.- Returns:
- A new empty BasicDiagnostic.
-
merge
Thread safely merge the given diagnostic to thediagnosticfield.- Parameters:
resourceDiagnostic- the diagnostic to be added to the global diagnostic.
-