public class QuickFixProcessor extends Object
|Constructor and Description|
|Modifier and Type||Method and Description|
Collects corrections or code manipulations for the given context.
public boolean hasCorrections(ICompilationUnit unit, int problemId)
trueif the processor has proposals for the given problem. This test should be an optimistic guess and be very cheap.
unit- The compilation unit.
problemId- The problem Id. The id is of a problem of the problem type(s) this processor specified in the extension point.
trueif the processor has proposals for the given problem.
public IJavaCompletionProposal getCorrections(IInvocationContext context, IProblemLocation locations) throws CoreException
context- Defines current compilation unit, position and a shared AST.
locations- Problems are the current location.
nullif no proposals can be offered.
CoreException- CoreException can be thrown if the operation fails.
iizi® is a registered trademark of Mindus SARL. © Copyright 2019 Mindus SARL. All rights reserved.