public interface ModelQuickFix
Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Priority for fixes that are not applicable to a given diagnostic.
|
Modifier and Type | Method and Description |
---|---|
void |
applyFix(org.eclipse.emf.ecore.EObject target)
Applies the fix to the
EObject . |
String |
getLabel(org.eclipse.emf.common.util.Diagnostic diagnostic) |
double |
isApplicable(org.eclipse.emf.common.util.Diagnostic diagnostic)
Checks whether the quick fix is applicable for the provided Diagnostic.
|
static final double NOT_APPLICABLE
double isApplicable(org.eclipse.emf.common.util.Diagnostic diagnostic)
diagnostic
- - the diagnostic of the problemvoid applyFix(org.eclipse.emf.ecore.EObject target) throws ModelQuickFixException
EObject
.target
- - the EObject
that should be fixedModelQuickFixException
- if something went wrong while applying the fix.String getLabel(org.eclipse.emf.common.util.Diagnostic diagnostic)
diagnostic
- the diagnostic for which the label should be returnedCopyright © 2017. All rights reserved.