The link mirrors the REST API path of the entry (/libraries/{id}/entries/{key}) so that the same address
works in jabsrv, cite-as-you-write and JabMap:
jabref://libraries/{id}/entries/{key} (absolute, {id} as in BibDatabaseContext#getLibraryId)
entries/{key} (relative to the active library, what the AI chat emits)
Both forms accept an optional /files/{n} segment selecting the {n}-th linked file (1-based, default: first PDF)
and a #page={page} fragment as in the PDF Open Parameters understood by Acrobat.
| Modifier and Type | Class and Description |
|---|---|
| public static record |
| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private static final Logger | |
| private static final Pattern | |
| public static final String | |
| private final StateManager | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private static boolean | |
| private void | |
| private static Optional | |
| public static Optional |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PAGE_FRAGMENT | back to summary |
|---|---|
| private static final Pattern PAGE_FRAGMENT | |
| SCHEME | back to summary |
|---|---|
| public static final String SCHEME | |
| stateManager | back to summary |
|---|---|
| private final StateManager stateManager | |
| url | back to summary |
|---|---|
| private final String url | |
| JumpToEntryPdfAction | back to summary |
|---|---|
| public JumpToEntryPdfAction(String url, StateManager stateManager, DialogService dialogService) | |
| execute | back to summary |
|---|---|
public void execute()
| |
| isPDF | back to summary |
|---|---|
| private static boolean isPDF(LinkedFile file) | |
| openInDocumentViewer | back to summary |
|---|---|
| private void openInDocumentViewer(LinkedFile pdfFile, int page) | |
| parsePositiveInt | back to summary |
|---|---|
| private static Optional | |
| parseUrl | back to summary |
|---|---|
public static Optional
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | citationKey
Record Component accessed by citationKey(). |
| private final Optional | fileIndex
Record Component accessed by fileIndex(). 1-based index into the entry's linked files, empty for "first PDF" |
| private final Optional | libraryId
Record Component accessed by libraryId(). empty for links relative to the active library |
| private final Optional |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public Optional | |
| public final int | |
| public Optional | |
| public Optional | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| citationKey | back to summary |
|---|---|
| private final String citationKey Record Component accessed by citationKey(). | |
| fileIndex | back to summary |
|---|---|
| private final Optional<Integer> fileIndex Record Component accessed by fileIndex(). 1-based index into the entry's linked files, empty for "first PDF" | |
| libraryId | back to summary |
|---|---|
| private final Optional<String> libraryId Record Component accessed by libraryId(). empty for links relative to the active library | |
| page | back to summary |
|---|---|
| private final Optional<Integer> page Record Component accessed by page(). 1-based page number | |
| EntryLink | back to summary |
|---|---|
| public EntryLink(Optional<String> libraryId, String citationKey, Optional<Integer> fileIndex, Optional<Integer> page) | |
| citationKey | back to summary |
|---|---|
| public String citationKey() Record Component getter of citationKey. | |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| fileIndex | back to summary |
|---|---|
| public Optional Record Component getter of fileIndex.
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| libraryId | back to summary |
|---|---|
| public Optional Record Component getter of libraryId.
| |
| page | back to summary |
|---|---|
| public Optional Record Component getter of page.
| |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |