Package com.iizigo.java
Class QuickFixProcessor
java.lang.Object
com.iizigo.java.QuickFixProcessor
- All Implemented Interfaces:
- IQuickFixProcessor
The quick-fix processor for IIZI.
- Author:
- Christopher Mindus
- Constructor SummaryConstructors
- Method SummaryModifier and TypeMethodDescription- getCorrections- (IInvocationContext context, IProblemLocation[] locations) Collects corrections or code manipulations for the given context.- boolean- hasCorrections- (ICompilationUnit unit, int problemId) Returns- trueif the processor has proposals for the given problem.
- Constructor Details- QuickFixProcessorpublic QuickFixProcessor()
 
- Method Details- hasCorrectionsReturns- trueif the processor has proposals for the given problem. This test should be an optimistic guess and be very cheap.- Specified by:
- hasCorrectionsin interface- IQuickFixProcessor
- Parameters:
- 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.
- Returns:
- trueif the processor has proposals for the given problem.
 
- getCorrectionspublic IJavaCompletionProposal[] getCorrections- (IInvocationContext context, IProblemLocation[] locations) throws CoreException Collects corrections or code manipulations for the given context.- Specified by:
- getCorrectionsin interface- IQuickFixProcessor
- Parameters:
- context- Defines current compilation unit, position and a shared AST.
- locations- Problems are the current location.
- Returns:
- The corrections applicable at the location or nullif no proposals can be offered.
- Throws:
- CoreException- CoreException can be thrown if the operation fails.