Class AbstractDefinitionParticipant
java.lang.Object
org.eclipse.lemminx.services.extensions.AbstractDefinitionParticipant
- All Implemented Interfaces:
IDefinitionParticipant
- Direct Known Subclasses:
DTDDefinitionParticipant,EntitiesDefinitionParticipant,RNGDefinitionParticipant,XMLReferencesDefinitionParticipant,XSDDefinitionParticipant
public abstract class AbstractDefinitionParticipant
extends Object
implements IDefinitionParticipant
Abstract class for definition.
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voiddoFindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the definitionfinal voidfindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find definition.protected abstract booleanmatch(DOMDocument document) Returns true if the definition support is applicable for the given document and false otherwise.
-
Constructor Details
-
AbstractDefinitionParticipant
public AbstractDefinitionParticipant()
-
-
Method Details
-
findDefinition
public final void findDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Description copied from interface:IDefinitionParticipantFind definition.- Specified by:
findDefinitionin interfaceIDefinitionParticipant
-
match
Returns true if the definition support is applicable for the given document and false otherwise.- Parameters:
document-- Returns:
- true if the definition support is applicable for the given document and false otherwise.
-
doFindDefinition
protected abstract void doFindDefinition(IDefinitionRequest request, List<org.eclipse.lsp4j.LocationLink> locations, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) Find the definition- Parameters:
request-locations-cancelChecker-
-