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 Constructor Description AbstractTypeDefinitionParticipant()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voiddoFindTypeDefinition(ITypeDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)Find the type definitionvoidfindTypeDefinition(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.
-
-
-
Method Detail
-
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
protected abstract boolean match(DOMDocument document)
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-
-
-