If the version check is executed manually and this is the latest version, it will also display a dialog to inform the user.
| Modifier and Type | Field and Description |
|---|---|
| private final DialogService | |
| private final ExternalApplicationsPreferences | |
| private final Version | installedVersion
The current version of the installed JabRef |
| private final InternalPreferences | |
| private static final Logger | |
| private final TaskExecutor |
| Access | Constructor and Description |
|---|---|
| public | VersionWorker(@NonNull Version installedVersion, @NonNull DialogService dialogService, @NonNull TaskExecutor taskExecutor, @NonNull GuiPreferences preferences)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| private Optional | getNewVersion()
Returns a newer version excluding any non-stable versions, except if the installed one is unstable too. |
| private void | showConnectionError(Exception exception, boolean manualExecution)
Prints the connection problem to the status bar and shows a dialog if it was executed manually |
| private void | showUpdateInfo(Optional<Version> newerVersion, boolean manualExecution)
Prints up-to-date to the status bar (and shows a dialog it was executed manually) if there is now new version. |
| dialogService | back to summary |
|---|---|
| private final DialogService dialogService | |
| externalApplicationsPreferences | back to summary |
|---|---|
| private final ExternalApplicationsPreferences externalApplicationsPreferences | |
| installedVersion | back to summary |
|---|---|
| private final Version installedVersion The current version of the installed JabRef | |
| internalPreferences | back to summary |
|---|---|
| private final InternalPreferences internalPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| taskExecutor | back to summary |
|---|---|
| private final TaskExecutor taskExecutor | |
| VersionWorker | back to summary |
|---|---|
| public VersionWorker(@NonNull Version installedVersion, @NonNull DialogService dialogService, @NonNull TaskExecutor taskExecutor, @NonNull GuiPreferences preferences) | |
| checkForNewVersionAsync | back to summary |
|---|---|
| public void checkForNewVersionAsync() | |
| checkForNewVersionDelayed | back to summary |
|---|---|
| public void checkForNewVersionDelayed() | |
| getNewVersion | back to summary |
|---|---|
| private Optional Returns a newer version excluding any non-stable versions, except if the installed one is unstable too. If no newer version was found, then an empty optional is returned. | |
| showConnectionError | back to summary |
|---|---|
| private void showConnectionError(Exception exception, boolean manualExecution) Prints the connection problem to the status bar and shows a dialog if it was executed manually | |
| showUpdateInfo | back to summary |
|---|---|
| private void showUpdateInfo(Optional<Version> newerVersion, boolean manualExecution) Prints up-to-date to the status bar (and shows a dialog it was executed manually) if there is now new version. Shows a "New Version" Dialog to the user if there is. | |