public interface IQuickAssistProcessor
org.eclipse.wst.jsdt.ui.quickAssistProcessors
.
Provisional API: This class/interface is part of an interim API that is still under development and expected to
change significantly before reaching stability. It is being made available at this early stage to solicit feedback
from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken
(repeatedly) as the API evolves.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 failsCopyright (c) IBM Corp. and others 2000, 2010. All Rights Reserved.