Class ContentModelCompletionParticipant
- java.lang.Object
-
- org.eclipse.lemminx.services.extensions.completion.CompletionParticipantAdapter
-
- org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelCompletionParticipant
-
- All Implemented Interfaces:
ICompletionParticipant
public class ContentModelCompletionParticipant extends CompletionParticipantAdapter
Extension to support XML completion based on content model (XML Schema completion, etc)
-
-
Constructor Summary
Constructors Constructor Description ContentModelCompletionParticipant()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ICompletionItemResolveParticipantgetResolveCompletionItemParticipant(String participantId)Returns the completion item resolver that corresponds to the given participant id or null otherwise.voidonAttributeName(boolean generateValue, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)voidonAttributeValue(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Collects and stores attribute value completion items within the provided completion responseresponsevoidonTagOpen(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)voidonXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)-
Methods inherited from class org.eclipse.lemminx.services.extensions.completion.CompletionParticipantAdapter
onDTDSystemId
-
-
-
-
Method Detail
-
onTagOpen
public void onTagOpen(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
- Specified by:
onTagOpenin interfaceICompletionParticipant- Overrides:
onTagOpenin classCompletionParticipantAdapter- Throws:
Exception
-
onAttributeName
public void onAttributeName(boolean generateValue, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception- Specified by:
onAttributeNamein interfaceICompletionParticipant- Overrides:
onAttributeNamein classCompletionParticipantAdapter- Throws:
Exception
-
onAttributeValue
public void onAttributeValue(String valuePrefix, ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
Description copied from interface:ICompletionParticipantCollects and stores attribute value completion items within the provided completion responseresponse- Specified by:
onAttributeValuein interfaceICompletionParticipant- Overrides:
onAttributeValuein classCompletionParticipantAdapter- Parameters:
valuePrefix- the attribute value before the offset in which completion was invokedrequest- the completion requestresponse- the completion response- Throws:
Exception
-
onXMLContent
public void onXMLContent(ICompletionRequest request, ICompletionResponse response, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) throws Exception
- Specified by:
onXMLContentin interfaceICompletionParticipant- Overrides:
onXMLContentin classCompletionParticipantAdapter- Throws:
Exception
-
getResolveCompletionItemParticipant
public ICompletionItemResolveParticipant getResolveCompletionItemParticipant(String participantId)
Description copied from interface:ICompletionParticipantReturns the completion item resolver that corresponds to the given participant id or null otherwise.- Parameters:
participantId- the participant id to find the completion item resolver for- Returns:
- the completion item resolver that corresponds to the given participant id or null otherwise
-
-