public class UpToDate extends Object
Modifier and Type | Class and Description |
---|---|
static class |
UpToDate.Result |
Constructor and Description |
---|
UpToDate() |
Modifier and Type | Method and Description |
---|---|
static boolean |
canWrite(File ijRoot) |
static UpToDate.Result |
check()
Check the update status of the current ImageJ installation.
|
static UpToDate.Result |
check(File ijRoot)
Check the update status of a given ImageJ installation.
|
static long |
getLastModified(String url) |
static boolean |
haveNetworkConnection() |
static boolean |
isDeveloper() |
static boolean |
neverRemind() |
static long |
now() |
static void |
setLatestNag()
Remember that we just nagged the user about an update.
|
static void |
setLatestNag(long ticks)
Remember when we last nagged the user about an update.
|
static boolean |
shouldRemindLater() |
public static UpToDate.Result check() throws IOException, ParserConfigurationException, SAXException
IOException
ParserConfigurationException
SAXException
public static UpToDate.Result check(File ijRoot) throws IOException, ParserConfigurationException, SAXException
ijRoot
- the root directory of the ImageJ installation to checkIOException
ParserConfigurationException
SAXException
public static long now()
public static boolean neverRemind()
public static boolean shouldRemindLater()
public static boolean isDeveloper()
public static boolean canWrite(File ijRoot)
ijRoot
- the root directory to testpublic static boolean haveNetworkConnection()
public static long getLastModified(String url)
url
- the URL to accessFile.lastModified()
)public static void setLatestNag()
public static void setLatestNag(long ticks)
ticks
- Copyright © 2014–2022 ImageJ. All rights reserved.