Class ExternalContentCompletionProvider
java.lang.Object
ro.sync.exml.workspace.api.editor.page.text.ExternalContentCompletionProvider
@API(type=EXTENDABLE,
src=PUBLIC)
public abstract class ExternalContentCompletionProvider
extends Object
An external content completion provider. Can be used to display a custom content completion list,
and insert content in the document. This provider is invoked if no built-in proposals
are available for the current context.
- Since:
- 22.1
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanStart an external content completion support.
-
Constructor Details
-
ExternalContentCompletionProvider
public ExternalContentCompletionProvider()
-
-
Method Details
-
startExternalContentCompletion
Start an external content completion support.- Parameters:
context- The current content completion context, such as the position and the text from the caret.- Returns:
trueif the event was consumed, and no other registered plugin should be notified to start the external content completion.falseif the event was not consumed and other plugins can be notified to start the external content completion.- Since:
- 22.1
-