Interface AceCompletionProvider
public interface AceCompletionProvider
A provider of custom code-completion proposals.
Warning: this is an experimental feature of AceGWT.
It is possible that the API will change in an incompatible way
in future releases.
-
Method Summary
Modifier and TypeMethodDescriptionvoidgetProposals(AceEditor editor, AceEditorCursorPosition pos, String prefix, AceCompletionCallback callback) Call to get code completion proposals, which are delivered to a callback.
-
Method Details
-
getProposals
void getProposals(AceEditor editor, AceEditorCursorPosition pos, String prefix, AceCompletionCallback callback) Call to get code completion proposals, which are delivered to a callback. Note that it is fine for this method to invoke the callback at a later time (for example, on completion of RPC.)- Parameters:
editor- theAceEditorpos- the cursor positionprefix- the word prefixcallback- theAceCompletionCallbackto which the proposals should be delivered
-