public interface IQuickAssistProcessor
org.eclipse.jdt.ui.quickAssistProcessors
.Modifier and Type | Method and Description |
---|---|
IJavaCompletionProposal[] |
getAssists(IInvocationContext context,
IProblemLocation[] locations)
Collects quick assists for the given context.
|
boolean |
hasAssists(IInvocationContext context)
Evaluates if quick assists can be created for the given context.
|
boolean hasAssists(IInvocationContext context) throws CoreException
context
- The invocation contexttrue
if quick assists can be createdCoreException
- CoreException can be thrown if the operation failsIJavaCompletionProposal[] getAssists(IInvocationContext context, IProblemLocation[] locations) throws CoreException
context
- Defines current compilation unit, position and a shared ASTlocations
- The locations of problems at the invocation offset. The processor can decide to only
add assists when there are no errors at the selection offset.null
if no proposals
can be offered.CoreException
- CoreException can be thrown if the operation fails
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.