Package ro.sync.exml.editor.quickassist
Interface SimpleQuickAssistProcessor
-
@API(type=INTERNAL, src=PUBLIC) public interface SimpleQuickAssistProcessor
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.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
canAssist(WSEditorPage editorPage, int offset)
Tells whether this assistant has assists for the given invocation context.IQuickAssistProposal[]
computeQuickAssistProposals(WSEditorPage editorPage, int offset)
Returns a list of quick assist and quick fix proposals for the given invocation context.default short
getPriority()
-
-
-
Method Detail
-
canAssist
boolean canAssist(WSEditorPage editorPage, int offset)
Tells whether this assistant has assists for the given invocation context.- Parameters:
editorPage
- The current editor page. Can benull
if the editor page cannot be determined.offset
- the offset where quick assist was invoked.- Returns:
true
if the assistant has a proposal for the given context
-
computeQuickAssistProposals
IQuickAssistProposal[] computeQuickAssistProposals(WSEditorPage editorPage, int offset)
Returns a list of quick assist and quick fix proposals for the given invocation context.- Parameters:
editorPage
- The current editor page. Can benull
if the editor page cannot be determined.offset
- the offset where quick assist was invoked.- Returns:
- an array of completion proposals or
null
if no proposals are available
-
getPriority
default short getPriority()
- Returns:
- The priority. One of the constants in ro.sync.exml.editor.quickassist.IQuickAssistProcessor
-
-