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
FieldsModifier and TypeFieldDescriptionstatic final short
A quick assist processor with high priority.static final short
A quick assist processor with low priority.static final short
A quick assist processor with normal priority. -
Method Summary
Modifier and TypeMethodDescriptionboolean
canAssist
(IQuickAssistInvocationContext invocationContext) Tells whether this assistant has assists for the given invocation context.computeQuickAssistProposals
(IQuickAssistInvocationContext invocationContext) Returns a list of quick assist and quick fix proposals for the given invocation context.short
The priority assigned with this processor.
-
Field Details
-
PRIORITY_LOW
static final short PRIORITY_LOWA quick assist processor with low priority.- See Also:
-
PRIORITY_NORMAL
static final short PRIORITY_NORMALA quick assist processor with normal priority.- See Also:
-
PRIORITY_HIGH
static final short PRIORITY_HIGHA quick assist processor with high priority.- See Also:
-
-
Method Details
-
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
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
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
-