Class ContentModelTypeDefinitionParticipant
java.lang.Object
org.eclipse.lemminx.services.extensions.AbstractTypeDefinitionParticipant
org.eclipse.lemminx.extensions.contentmodel.participants.ContentModelTypeDefinitionParticipant
- All Implemented Interfaces:
ITypeDefinitionParticipant
Extension to support XML type definition based on content model (XML Schema
type definition, etc)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the type definitionprotected booleanmatch(DOMDocument document) Returns true if the type definition support is applicable for the given document and false otherwise.Methods inherited from class org.eclipse.lemminx.services.extensions.AbstractTypeDefinitionParticipant
findTypeDefinition
-
Constructor Details
-
ContentModelTypeDefinitionParticipant
public ContentModelTypeDefinitionParticipant()
-
-
Method Details
-
match
Description copied from class:AbstractTypeDefinitionParticipantReturns true if the type definition support is applicable for the given document and false otherwise.- Specified by:
matchin classAbstractTypeDefinitionParticipant- Returns:
- true if the type definition support is applicable for the given document and false otherwise.
-
doFindTypeDefinition
protected void doFindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Description copied from class:AbstractTypeDefinitionParticipantFind the type definition- Specified by:
doFindTypeDefinitionin classAbstractTypeDefinitionParticipant
-