Class AbstractTypeDefinitionParticipant
java.lang.Object
org.eclipse.lemminx.services.extensions.AbstractTypeDefinitionParticipant
- All Implemented Interfaces:
ITypeDefinitionParticipant
- Direct Known Subclasses:
ContentModelTypeDefinitionParticipant
public abstract class AbstractTypeDefinitionParticipant
extends Object
implements ITypeDefinitionParticipant
Abstract class for type definition.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoFindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the type definitionfinal voidfindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find type definition.protected abstract booleanmatch(DOMDocument document) Returns true if the type definition support is applicable for the given document and false otherwise.
-
Constructor Details
-
AbstractTypeDefinitionParticipant
public AbstractTypeDefinitionParticipant()
-
-
Method Details
-
findTypeDefinition
public final void findTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Description copied from interface:ITypeDefinitionParticipantFind type definition.- Specified by:
findTypeDefinitionin interfaceITypeDefinitionParticipant
-
match
Returns true if the type definition support is applicable for the given document and false otherwise.- Parameters:
document-- Returns:
- true if the type definition support is applicable for the given document and false otherwise.
-
doFindTypeDefinition
protected abstract void doFindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the type definition- Parameters:
request-locations-cancelChecker-
-