| org.eclipse.jdt.ui.text.java.IQuickFixProcessor
All known Subclasses: org.eclipse.jdt.internal.ui.text.spelling.WordQuickFixProcessor, org.eclipse.jdt.ui.examples.MyQuickFixProcessor, org.eclipse.jdt.internal.ui.text.correction.QuickFixProcessor,
IQuickFixProcessor | public interface IQuickFixProcessor (Code) | | Interface to be implemented by contributors to the extension point
org.eclipse.jdt.ui.quickFixProcessors .
Since 3.2, each extension specifies the marker types it can handle, and
IQuickFixProcessor.hasCorrections(ICompilationUnit,int) and
IQuickFixProcessor.getCorrections(IInvocationContext,IProblemLocation[]) are called if (and only if) quick fix is
required for a problem of these types.
Note, if a extension does not specify marker types it will be only called for problem of type
org.eclipse.jdt.core.problem , org.eclipse.jdt.core.buildpath_problem
and org.eclipse.jdt.core.task ; compatible with the behavior prior to 3.2
since: 3.0 |
getCorrections | IJavaCompletionProposal[] getCorrections(IInvocationContext context, IProblemLocation[] locations) throws CoreException(Code) | | Collects corrections or code manipulations for the given context.
Parameters: context - Defines current compilation unit, position and a shared AST Parameters: locations - Problems are the current location. the corrections applicable at the location or null if no proposalscan be offered throws: CoreException - CoreException can be thrown if the operation fails |
hasCorrections | boolean hasCorrections(ICompilationUnit unit, int problemId)(Code) | | Returns true if the processor has proposals for the given problem. This test should be an
optimistic guess and be very cheap.
Parameters: unit - the compilation unit Parameters: problemId - the problem Id. The id is of a problem of the problem type(s) this processor specified inthe extension point. true if the processor has proposals for the given problem |
|
|