public final class DiagnosticHelper extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
checkDiagnosticData(org.eclipse.emf.common.util.Diagnostic diagnostic)
Verify if the given
Diagnostic contains at least one EStructuralFeature or a
InternalEObject . |
static org.eclipse.emf.ecore.EStructuralFeature |
getEStructuralFeature(List<?> data)
Returns the first
EStructuralFeature in the given list. |
static org.eclipse.emf.ecore.InternalEObject |
getFirstInternalEObject(List<?> data)
Returns the first
InternalEObject in the given list. |
public static org.eclipse.emf.ecore.EStructuralFeature getEStructuralFeature(List<?> data)
EStructuralFeature
in the given list.data
- the list to search for a EStructuralFeature
EStructuralFeature
, null if no EStructuralFeature
is foundpublic static org.eclipse.emf.ecore.InternalEObject getFirstInternalEObject(List<?> data)
InternalEObject
in the given list.data
- the list to search for a InternalEObject
InternalEObject
, null if no InternalEObject
is foundpublic static boolean checkDiagnosticData(org.eclipse.emf.common.util.Diagnostic diagnostic)
Diagnostic
contains at least one EStructuralFeature
or a
InternalEObject
.diagnostic
- the Diagnostic
to checkDiagnostic
contains at least one EStructuralFeature
or
InternalEObject
, false otherwiseCopyright © 2019. All rights reserved.