public final class VersionChecker
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int |
compareVersions(java.lang.String version1,
java.lang.String update1,
java.lang.String version2,
java.lang.String update2)
Compares OmegaT version numbers.
|
static VersionChecker |
getInstance() |
java.lang.String |
getRemoteVersion() |
boolean |
isUpToDate(boolean force)
Check if OmegaT is up to date.
|
public static VersionChecker getInstance()
public boolean isUpToDate(boolean force) throws java.lang.Exception
force
- If true, fetch the latest data from the server even if the current data is not stale yetjava.lang.Exception
public java.lang.String getRemoteVersion() throws java.lang.Exception
java.lang.Exception
public static int compareVersions(java.lang.String version1, java.lang.String update1, java.lang.String version2, java.lang.String update2)
version1
- e.g. "5.4.0"update1
- e.g. "0"version2
- e.g. "3.0.6"update2
- "1"