Class ExternalContentCompletionProvider
- java.lang.Object
-
- ro.sync.exml.workspace.api.editor.page.text.ExternalContentCompletionProvider
-
@API(type=EXTENDABLE, src=PUBLIC) public abstract class ExternalContentCompletionProvider extends java.lang.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 Constructor Description ExternalContentCompletionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
startExternalContentCompletion(IExternalContentCompletionContext context)
Start an external content completion support.
-
-
-
Method Detail
-
startExternalContentCompletion
public boolean startExternalContentCompletion(IExternalContentCompletionContext context)
Start an external content completion support.- Parameters:
context
- The current content completion context, such as the position and the text from the caret.- Returns:
true
if the event was consumed, and no other registered plugin should be notified to start the external content completion.false
if the event was not consumed and other plugins can be notified to start the external content completion.- Since:
- 22.1
-
-