Verified Owner
Top Fields Constructors Methods
org.jabref.languageserver.util

public Class LspLinkHandler

extends Object
Class Inheritance
Imports
java.util.List, .Optional, java.util.concurrent.CompletableFuture, org.jabref.languageserver.LspClientHandler, org.jabref.languageserver.util.definition.DefinitionProvider, .DefinitionProviderFactory, org.jabref.logic.FilePreferences, org.eclipse.lsp4j.DocumentLink, .Location, .LocationLink, .Position, org.eclipse.lsp4j.jsonrpc.messages.Either, org.slf4j.Logger, .LoggerFactory

Field Summary

Modifier and TypeField and Description
private final LspClientHandler
private static final Logger
private final LspParserHandler
private final FilePreferences

Constructor Summary

AccessConstructor and Description
public
LspLinkHandler(LspClientHandler clientHandler, LspParserHandler parserHandler, FilePreferences preferences)

Method Summary

Modifier and TypeMethod and Description
public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>>
provideDefinition(String languageId, String uri, String content, Position position)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

clientHandlerback to summary
private final LspClientHandler clientHandler
LOGGERback to summary
private static final Logger LOGGER
parserHandlerback to summary
private final LspParserHandler parserHandler
preferencesback to summary
private final FilePreferences preferences

Constructor Detail

LspLinkHandlerback to summary
public LspLinkHandler(LspClientHandler clientHandler, LspParserHandler parserHandler, FilePreferences preferences)

Method Detail

provideDefinitionback to summary
public CompletableFuture<Either<List<? extends Location>, List<? extends LocationLink>>> provideDefinition(String languageId, String uri, String content, Position position)