Package ro.sync.exml.editor.quickassist
Interface IQuickAssistProcessor
-
@API(type=INTERNAL, src=PUBLIC) public interface IQuickAssistProcessor
Quick assist processor for quick fixes and quick assists.A processor can provide just quick fixes, just quick assists or both.
This interface can be implemented by clients.
-
-
Field Summary
Fields Modifier and Type Field Description static short
PRIORITY_HIGH
A quick assist processor with high priority.static short
PRIORITY_LOW
A quick assist processor with low priority.static short
PRIORITY_NORMAL
A quick assist processor with normal priority.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canAssist(IQuickAssistInvocationContext invocationContext)
Tells whether this assistant has assists for the given invocation context.IQuickAssistProposal[]
computeQuickAssistProposals(IQuickAssistInvocationContext invocationContext)
Returns a list of quick assist and quick fix proposals for the given invocation context.short
getPriority()
The priority assigned with this processor.
-
-
-
Field Detail
-
PRIORITY_LOW
static final short PRIORITY_LOW
A quick assist processor with low priority.- See Also:
- Constant Field Values
-
PRIORITY_NORMAL
static final short PRIORITY_NORMAL
A quick assist processor with normal priority.- See Also:
- Constant Field Values
-
PRIORITY_HIGH
static final short PRIORITY_HIGH
A quick assist processor with high priority.- See Also:
- Constant Field Values
-
-
Method Detail
-
getPriority
short getPriority()
The priority assigned with this processor. The processors are requested depending on this priority, only the proposals of the first processor will be presented.- Returns:
- The priority assigned with this processor.
-
canAssist
boolean canAssist(IQuickAssistInvocationContext invocationContext)
Tells whether this assistant has assists for the given invocation context.- Parameters:
invocationContext
- the invocation context- Returns:
true
if the assistant has a fix for the given annotation
-
computeQuickAssistProposals
IQuickAssistProposal[] computeQuickAssistProposals(IQuickAssistInvocationContext invocationContext)
Returns a list of quick assist and quick fix proposals for the given invocation context.- Parameters:
invocationContext
- the invocation context- Returns:
- an array of completion proposals or
null
if no proposals are available
-
-