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
ConstructorDescriptionConstructor, will instantiate a default diagnostic.DiagnosticSupport
(BasicDiagnostic diagnostic) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicDiagnostic
Creates the BasicDiagnostic that will be used by this computation.void
merge
(Diagnostic resourceDiagnostic) Thread safely merge the given diagnostic to thediagnostic
field.
-
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 thediagnostic
field.- Parameters:
resourceDiagnostic
- the diagnostic to be added to the global diagnostic.
-