@MimeLocation(subfolderName="HyperlinkLocationProviders") public interface HyperlinkLocationProvider
@MimeRegistration(mimeType = "text/foo", service = HyperlinkLocationProvider.class)
public class FooHyperlinkLocationProvider implements HyperlinkLocationProvider {
...
}
Modifier and Type | Method and Description |
---|---|
static HyperlinkLocation |
createHyperlinkLocation(FileObject fileObject,
int startOffset,
int endOffset)
Creates
HyperlinkLocation instances. |
CompletableFuture<HyperlinkLocation> |
getHyperlinkLocation(Document doc,
int offset)
Resolves a hyperlink at the given document offset and returns its
target location.
|
CompletableFuture<HyperlinkLocation> getHyperlinkLocation(@NonNull Document doc, int offset)
doc
- document on which to operate.offset
- offset within documentstatic HyperlinkLocation createHyperlinkLocation(@NonNull FileObject fileObject, int startOffset, int endOffset)
HyperlinkLocation
instances.fileObject
- target file object of the hyperlinkstartOffset
- start offset of the hyperlink's target rangeendOffset
- end offset of the hyperlink's target range